naoufal / react-native-payments

Accept Payments with Apple Pay and Android Pay using the Payment Request API.
https://www.npmjs.com/package/react-native-payments
1.59k stars 413 forks source link

Question - How to connect a card without a transaction? #222

Open ShaharyarMaroof opened 4 years ago

ShaharyarMaroof commented 4 years ago

I don't have any transaction associated with the PaymentRequest, I just want the user to be able to link their cards to Apple Wallet/Google Pay. Is there any way to just connect the card without any transaction details?

nabilfreeman commented 3 years ago

Hey, we're working on something that will allow you to do this in v0.9, more information here: #249

You will be able to do with with a combination of Apple Pay and Stripe SetupIntent. Just a heads up, you need a back-end that can do a back and forth dance with the app to generate a session and verify the token that Apple Pay gives you.

The library will be ready in a few days, just follow that other issue.