#Chooke-Subscription

1 messages · Page 1 of 1 (latest)

round laurel
#

You can replace the PaymentElement integration part with mobile PaymentSheet

dusty heron
#

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

round laurel
#

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)

dusty heron
#

thank you so much for your help i will try that 😁