#thomas-d
1 messages · Page 1 of 1 (latest)
Hello! Are you already familiar with how Setup Intents/Payment Methods work for a Customer? What are you planning on using to collect payment (CHeckout, Elements, etc)?
i use already stripe.checkout.sessions.create for payment but i don't use subscription. I want add subscription for customer.
You can add a subscription for a customer through Checkout as well - is there a reason you don't want to do it with Checkout?
I didn’t know it was actually possible. Because I want to make a payment in several times
Is it better not directly make a subscription?
Yeah with CHeckout you can pass in an existing Customer ID (https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer) and then create a subscriptoin-mode Checkout Session (https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout)
You can make the Subscription directly if you want, but there's likely going to be a lot more work you'll need to do to support it/make it work
ok thank you for the information I will read link you sent me !!