I am currently building an Uber-like app for another kind of service. I am using Stripe in order to get payments after the service has been done. I am currently allowing my users to add credit cards.
I want to allow them to use Apple pay. What i want to do is very simple:
- User clicks on the button apple pay on the SelectPaymentMethod component.
- I get the default credit card information.
- I tokenize it for stripe and i store the token in my database in order to charge the credit card later when my drivers are done.
- User clicks on book.
- Service is done and we charge the credit card depending on the actual price of the booking.
After hours of research, I've have a pretty bad feeling about this. Could anyone tell me more about the apple pay local API on react native ?
I already read the documentation of react-native-payments but I don't want to charge my users upfront. I want to charge them later and that why i need to them to be table to add apple-pay as a payment method.
Thanks in advance.