#kezal
1 messages · Page 1 of 1 (latest)
hi! do you have an example of a Subscription sub_xxx where you see this, so I can understand what kind of API calls you're making?
Yes, sorry I was looking for it. Here is a subscription sub_1OU8fDF9R6Nkg8poxB31TKFA
well in this case you pass payment_behavior: "default_incomplete" so it's expected that no payment is attempted and the subscription is incomplete
the next step would be to attempt a payment, generally the safe way to do that is to pass the PaymentIntent client_secret (from latest_invoice.payment_intent) to the frontend and call https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-existing with the ID of the default PM
Is doing one PaymentIntent enough for subscriptions or should I make it each month ?
each Invoice (which the Subscription creates each month) creates a PaymentIntent; recurring Invoices(i.e. not the first one) charge the default card automatically
Okay thank you
for the first payment generally you're triggering this from the customer checking out on your site or clicking a button so usually you pass the PaymentIntent to the frontend to complete payment that way(which then activate the incomplete subscription); recurring payments happen automatically after that