#nacho_446
1 messages · Page 1 of 1 (latest)
Hi we discussed this yesterday
You need to pass payment method id when creating a payment intent: https://stripe.com/docs/api/payment_intents/create
Also recommend reading: https://stripe.com/docs/payments/paymentintents/lifecycle
One thing the payment is a subscription based so it should be recurring how can I set that on payment intent
Oh you can't
You'd need to create a subscription then
Please read this then: https://stripe.com/docs/billing/subscriptions/overview
I should note that generally it's recommended a customer be online (on payment page) for subscription creation (in case 3ds authentication is required). But if you aren't going to do that, payment methods should have, at the very least, been set up for future off-session usage when you collected the details initially in checkout: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
Do I have to create a subscription separate let this
I don't understand the question?
If you want recurring payments handled by us you need a subscription not a payment intent
Like this is asking for price Id and the rest the price is coming from my backend as I have other payment methods I wish to implement
Still don't understand what you're asking
You do need to provide either a price id or price_data
This thing is very confusing.
Will I have to create a subscription for every customer
It's your integration
I can't possibly know that
If you need every customer to be billed on a recurring basis, then yeah
That's the whole point of subscriptions
Creating the subscription will automatically bill the user ? If he has payment method added already