#MrMole-setupIntent
1 messages · Page 1 of 1 (latest)
hi! not sure I understand the question. SetupIntents would be created by your backend code, which your frontend code(the screenshot) can connect with if you please, yep.
in first step i would like to save my card details for future payment. Can i use for this apple pay?
yes, you can use SetupIntents with Apple Pay
so how to do it? because i am not sure :/
on example code in docs, i can see initPaymentSheet
but as you can see on screen, i am not using this
that ^^ is the easiest way, using the PaymentSheet
I can indeed see you're not using it, but I would suggest using it.
i think i tested it and it rendered form right?
not sure what that means
okay, let me check this first
alternatively you don't have to use the PaymentSheet. I think you'd want https://stripe.com/docs/apple-pay?platform=react-native but I'm not sure if the SDK supports SetupIntent with Apple Pay in that integration, so I'd suggest the PaymentSheet since I know it works
okay this link will give me button but i need to confirm if it is possible to make scenario like that
- Make authorization of card by apple pay button
- save card details
- charge money later
as i can see, on apple pay you have to present sheet with items ect...
so in my situation i would have to present item for 0$ and after confirmation, charge the money?
It is possible yes. And yes you need to present a sheet with items. You can use the "pending" type to show items that don't display an actual monetary amount(https://stripe.dev/stripe-react-native/api-reference/modules/ApplePay.html#CartSummaryItemType)
Apple Pay is not optimised for this use case(saving a card), but it totally works.
hmm all right, last question, can i test on simulator or i have to test on real device in regarding to apple pay?