Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApplePay: Confirm payment on the server #488

Closed
TommasoTate opened this issue Aug 4, 2021 · 1 comment
Closed

ApplePay: Confirm payment on the server #488

TommasoTate opened this issue Aug 4, 2021 · 1 comment
Labels
question Further information is requested

Comments

@TommasoTate
Copy link

Our implementation needs to tokenize ApplePay and GooglePay payment methods in order to process the payment server side.

As recently added for useGooglePay (#441), I wonder if there's already a timeline for adding a createApplePayPaymentMethod function to useApplePay hook.
If not, I would ask if there's any workaround we can follow in order to temporarily emulate this feature.

@thorsten-stripe
Copy link
Contributor

@TommasoTate Apple Pay automatically returns the payment method when presentApplePay resolves: https://stripe.dev/stripe-react-native/api-reference/modules.html#ApplePayResult

You can then send the payment method to your server and charge it there. Afterward you will need to return the client_secret of your PaymentIntent to your client and call confirmApplePayPayment with it in order to close the Apple Pay sheet.

@thorsten-stripe thorsten-stripe added the question Further information is requested label Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants