#abuzar_thanvi

1 messages · Page 1 of 1 (latest)

rocky moatBOT
urban torrent
#

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

halcyon ember
#

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?

urban torrent
#

I'm able to display the apple pay button as per documentation on stripes official website
Which Doc url exactly?

halcyon ember
#

this one

urban torrent
#

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

halcyon ember
#

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

urban torrent
fringe lily
#

Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.