#iamhein

1 messages · Page 1 of 1 (latest)

open owl
#

@elder root is this with regards to your earlier question i.e. when using Checkout? or this is for a different scenario?

elder root
#

yes checkout

#

with payment sheet

#

I want to auto select last used method for repeated purchases

open owl
elder root
#

no. i think you misunderstand

#

In this UI, user have to press "Choose Payment Method" button every time they checkout to choose recent methods.

#

What i need is app need to select last used / default method without poping up that sheet.

proud thunder
#

Hello @elder root I believe the button is on your code, correct? And when push onto the button, you are calling presentPaymentSheet to display the PaymentSheet

elder root
#

Yes button is my UI and if user press i call presentPaymentSheet

#

you are right

proud thunder
#

So to completely avoid that Sheet, you should save the Customer Id (somehow) on your client, and send it to your server

#

Then in your server, you use that Customer Id, find his PaymentMethod, and use it to charge your customer immediately.

#

So generally, you would need to modify your UI flow

elder root
#

gotcha! i will combine that two approach. thank for the help

proud thunder
#

The problem with charge/confirming Payment on server, is that if the card requires 3DS, you will need to pass that information again to client, and in your ReactNative you will need to handle the redirect URL etc

#

That's why we recommend to use the PaymentSheet, it automatically handle 3DS if any, for you

elder root
#

ah. i forgot 3d problem. ok i will better use sheet with new flow. Thank you