#abuzar_thanvi
1 messages · Page 1 of 1 (latest)
Create Token API is an old and legacy API. Any reason you wouldn't switch over to PaymentElements? It will have support for ApplePay too
Hi orakaro, we may switch to PaymentElements later on for now I'm able to display the apple pay button as per documentation on stripes official website, I need apple pay for card handling but not for the payment completion, is this possible?
I'm able to display the apple pay button as per documentation on stripes official website
Which Doc url exactly?
this one
Okie that's Payment Request Button
Yes you can follow that doc, but instead of creating a PaymentIntent, create a SetupIntent instead
Then the button will collect the card and finally we send you setup_intent.succeeded webhook event, which you can extract the payment method id inside it
Oh I see, is there some documentation or snippets that I can follow for creating a setupIntent, thanks tho
also, I need to do this for apple pay only
Just swap the step of creating PaymentIntent there with creating SetupIntent like: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#create-intent
Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.