#slowgen-processing-error
1 messages · Page 1 of 1 (latest)
pi_3KaSNJG6IeRpDPne0cSzNs32
I'm basically looking for the message that is returned when someone tries to confirm an already confirmed payment. Is there such a thing
Have you looked at your requests in the dashboard? You can see in https://dashboard.stripe.com/test/logs/req_RcUcyLj7LbHKcU that the message you get back is You cannot confirm this PaymentIntent because it has already succeeded after being previously confirmed.
Yes I can also see that in the console but in the dom it is A processing error occurred. from error.message using Stripe's code snippets
I can't seem to get that message You cannot confirm this PaymentIntent because it has already succeeded after being previously confirmed. in the DOM
Ah, so your confusion is why you're seeing A processing error occurred client-side, when the server-side error is You cannot confirm this PaymentIntent because it has already succeeded after being previously confirmed, correct?
That's right.
What should I look for if I am trying to find only a response for a confirmed payment
If that makes sense
Sso I believe client-side we surface the A processing error occurred whenever the request has the error code payment_intent_unexpected_state . Is there a specific reason you need this level of detail client-side about the error?
I just want to stop users from trying to pay again if there was an error e.g. line dropped/generic error but the intent is still in session but they don't know that
I don't know what your UI look like, but you could just disable whatever button/UI component is triggering confirmation if the Payment Intent doesn't have a status of requires_payment_intent or requires_confirmation