#dragon.frost
1 messages · Page 1 of 1 (latest)
Hi
the PaymentIntent api creates an invoice for a customer as soon as the customer chooses a product
No PaymentIntent API doesn't create an invoice.
But Checkout Sesison does.
So if customers does not complete the checkout flow then there can be a buch of pending invoices right? so what purpose does this solve?
No, Invoices are not created From CheckoutSession untill the customer complete the purchase
I was going through the documentation to create a subscription: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
I've gone till the step to create a subscription with payment intent when first loading the checkout flow. This in turn creates an invoice on my stripe dashboard. Could you please let me know what these are?
Thansk for sharing these details. So you are using Subscription APIs and not PaymentIntent APIs.
If you want to avoid that, follow this guide instead (collect payment method before creating a Subscription):
https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription
So, in this flow, you create an intent only during submission of the checkout flow?
Yes, you create a Subscirption and ann intent only after the customer complete their payments details