question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: .confirmSetup promise doesn't resolve

See original GitHub issue

What happened?

I’m trying to handle errors for .confirmSetup call.

const { setupIntent, error } = await this.stripe.confirmSetup({
  elements: this.stripeElements,
  redirect: 'if_required',
  confirmParams: {
    return_url: window.location.hash,
  },
});

debugger;

if (error) {
  this.handleError(error);
...

When I use 4000 0000 0000 0002 card it properly triggers card_error with generic_decline and the piece above stops on debugger line (and I can handle the error).

But as soon as I try to use Apple Pay and select the card from Wallet, which I know will trigger the same error (card_error + generic_decline) - nothing happens. I never get to debugger statement, I don’t have any response, nothing happens at all.

One thing to note thought - I can see failed request to /v1/token with 402 status code and response body having proper error information, but it never gets returned from .confirmSetup.

P.S. I’ve tried both Discord and Support chat. In Discord I was told that yes, it looks like a bug and I can follow up in Support chat to get status update for this issue. Past 5 days - Support chat doesn’t know about it and thinks I’m requesting a new feature.

Environment

Safari Version 15.6.1 (17613.3.9.1.16) on macOS Monterey 12.5.1 (21G83)

Reproduction

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16

github_iconTop GitHub Comments

3reactions
jackieosborn-stripecommented, Dec 21, 2022

Hi all - we’ve just deployed a fix for this. Apologies for the delay, and feel free to open this issue back up if you still see the problem persisting!

3reactions
cyuen-stripecommented, Sep 22, 2022

@oaleynik This issue is being worked on right now. We don’t have an ETA, but we will post back here when the fix is deployed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integration of Stripe PaymentElement. Warning Unsupported ...
Unsupported prop change: options.clientSecret is not a mutable property. We do have some in-flight work to address your exact use case though ( ......
Read more >
Stripe JS Reference
If the confirmation fails, the Promise will resolve with an {error} object that describes the failure. When the error type is card_error or...
Read more >
stripe-js - bytemeta
[BUG]: no Types for canCreateRadarSession in StripeConstructorOptions · [BUG]: .confirmSetup promise doesn't resolve.
Read more >
Stripe stripe-js Issues - Giters
[BUG]: .confirmSetup promise doesn't resolve. Updated a month ago 11 ... [BUG]: stripe.js uses 70Mb of memory with empty installation. Updated a month...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found