Amazon Pay + 3ds

32 views
Skip to first unread message

Erik Tribou

unread,
Aug 26, 2024, 4:01:29 PM8/26/24
to Stripe API Discussion
I'm using Amazon Pay through the Express Checkout Element.  

I'm following the steps here:  https://docs.stripe.com/elements/express-checkout-element/accept-a-payment

Much of the time, this works smoothly.  Unfortunately, after step 7 (calling stripe.confirmPayment), the PaymentIntent returned has the status "requires_action" and looks to be needing 3ds.

{
  "id": "pi_xyz",
  "object": "payment_intent",
  "last_payment_error": null,
  "livemode": true,
  "next_action": {
    "type": "use_stripe_sdk",
    "use_stripe_sdk": {
      "authenticationUrl": "https://hooks.stripe.com/3d_secure_2/hosted?merchant=...

This doesn't make much sense as stripe.confirmPayment documentation claims:

When called, stripe.confirmPayment will attempt to complete any required actions, such as authenticating your user by displaying a 3DS dialog or redirecting them to a bank authorization page


Despite this, I try to call stripe.handleNextAction to handle the next_action.  Unfortunately, this results in the error:

Error: Unexpected Error, groupId is null/undefined.

I don't think Amazon Pay should be requesting Stripe to perform 3ds in the first place (shouldn't Amazon be doing that on their side?). And even if that's expected, stripe.confirmPayment should be handling it per the documentation.  And even if confirmPayment doesn't handle it, I would expect handleNextAction to work without an unexpected error.  Is this a bug on Stripe's end or has anyone gotten this flow to work?  Is there a different method I should be invoking?

Remi J.

unread,
Aug 26, 2024, 4:04:23 PM8/26/24
to api-d...@lists.stripe.com
Hello,

AmazonPay shouldn't lead to 3DS being required, you're right. `confirmPayment()` is supposed to handle this for you already. 

Unfortunately, it's not something I think we can debug over email in public as it will require back and forth and looking at real transactions on your account. Please reach out to our support team directly at https://support.stripe.com/contact and provide detailed information including exact PaymentIntent ids where this happened so that our support team can investigate further.

Best,
Remi

To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages