#Chooke-Subscription
1 messages · Page 1 of 1 (latest)
Hi there, you can get started with subscription by using this doc https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
You can replace the PaymentElement integration part with mobile PaymentSheet
so i was reading the doc , and i tried to create a customer first , then create a paymentMethod and attach it to the customer then create a subscription with that customer
would it be ok to do it this way , im not sure about the paymentMethod as its mentioned in doc to use paymentIntent or setupIntent
If you read this doc in sequence, you don't create a payment method after creating a customer. You should collect the payment method with PaymentElement (or PaymentSheet in mobile)
You don't need to create PaymentIntent or SetupIntent, you just need to pass the clientSecret (e.g., subscription.latest_invoice.payment_intent.client_secret) to the frontend and render the PaymentElement (or PaymentSheet in mobile)
thank you so much for your help i will try that 😁