#johan
1 messages · Page 1 of 1 (latest)
👋 happy to help
hi Tarzan thanks a lot
just give me a minute will be with you shortly
Hey! Taking over for my colleague. Let me catch up.
creating subscriptions and using react native apple pay as payment method
There is no direct guide for such a use case. But you can follow this integration guide in order to build a Subscription:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
When you came to step 6:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment
You need to refer to Stripe guide for integrating Apple Pay in react native:
https://stripe.com/docs/apple-pay?platform=react-native
okay I understand
Precisely, you need to pass the subscription.latest_invoice.payment_intent.client_secret in this step:
https://stripe.com/docs/apple-pay?platform=react-native#client-side
we already have an endpoint to create subscriptions in the web and we set default_payment_method to be a stored payment method
is it possible to use this same endpoint but use the apple pay card and set it to default_payment_method in the subscription?
Yes you can, then you need to collect the PaymentMethod id from Apple Pay
you can refer to this guide:
https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet
perfect thank you
Welcome!