#thenext_code

1 messages ¡ Page 1 of 1 (latest)

sour apexBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215274974965661756

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

bronze panther
#

To provide more information that didn't fit in the form, we are using Stripe test cards and they are failing to present 3DS views when using customFlow exclusively on iOS devices.

hollow locustBOT
sick yacht
#

Hi, let me help you with this.

bronze panther
sick yacht
#

Are you calling confirmPaymentSheetPayment() the payment right after you run initPaymentSheet(), as in the snippet you provided?

bronze panther
#

No, that was done just to show both parts of the code.

We initPaymentSheet() when our basket page loads
Then we presentPaymentSheet() when the user chooses to add a card by pressing the add card button.
Then we have a pay button which will trigger confirmPaymentSheetPayment().

sick yacht
#

Are you sure the confirm is called after the sheet is closed?

bronze panther
#

Yes it is definitely closed, the button is hidden behind the payment sheet, so the user can't see it until it is closed

#

It is worth noting this flow works perfectly on Android but not on iOS

sick yacht
bronze panther
#

Thanks I will do this