Hello,
I am not sure I understand fully the Paddle API here:
https://laravel.com/docs/7.x/cashier-paddle#charging-products
I have generated a sales like this:
$products = Product::where('product_status', 1)->orderBy('product_order')->get();
$payLink = $user->chargeProduct($product->product_id, [
'quantity_variable' => 0,
]);
return view('backend.customer.dashboard.view', ['payLink' => $payLink]);
I created a discount of 99% and passed the same via Paypal.
I received the sales receipt from Paypal and Paddle but no receipts have been created in the "receipts table".
I have also checked the webhooks and receives a 200 from the paddle account:
200
{"p_product_id":596697,"p_price":0.75,"p_country":"US","p_currency":"USD","p_sale_gross":0.75,"p_tax_amount":0,"p_paddle_fee":0.54,"p_coupon_savings":0,"p_earnings":"{\"115809\":\"0.2100\"}","p_order_id":16955780,"p_coupon":"","p_used_price_override":true,"passthrough":"Example passthrough","p_quantity":1,"quantity":1,"event_time":"2020-08-16 16:50:12"}
How to you get a receipt generated in the database please? How to I know that Paddle sent a webhook to the app after a successful sale?
Thank you.