#leonardo_88110

1 messages · Page 1 of 1 (latest)

south currentBOT
waxen geyser
#

Can you elaborate a bit more? You're creating a Payment Intent via an iOS app, then sending it to a web app?

agile bane
#

Yes, I am creating a payment intent and I send the object to an api on the web, this api generates the payment method and subsequently charges it

waxen geyser
#

How does it generate a Payment Method?

agile bane
#

I ask the user to enter their card information, I generate a request and send it to the API, in the API I generate the consumer if it does not exist and the payment method if it does not exist and I make the payment, but everything happens in the backend of my site

#

I understand that the wallet object is put in the payment method, but I can't find a way to take it from my mobile application to pass it to the API

waxen geyser
#

I'm confused. Where is the customer putting in their payment credentials? Your iOS app or your web app?

agile bane
#

iOS app

waxen geyser
#

Okay, let me grab a mobile dev that's a bit more experienced to help

agile bane
#

Thanks

leaden pelican
#

👋

#

You basically want to just follow https://stripe.com/docs/apple-pay?platform=ios here to integrate Apple Pay. Once the user completes the Apple Pay payment sheet then that will provide you with a PaymentMethod which you can pass to your backend to create/confirm the PaymentIntent.

agile bane
#

Thanks I will check