stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Error message in case of an attempt to complete a payment for an already canceled payment intent not suitable for customers

Open nicolasguenther opened this issue 1 year ago • 3 comments
trafficstars

Describe the bug When trying to complete a canceled payment intent we see the error message (see attached screenshot):

"This PaymentIntent's payment_method could not be updated because it has a status of canceled. You may only update the payment_method of a PaymentIntent with one of the following statuses: requires_payment_method, requires_confirmation, requires_action."

This is not an error message suitable for displaying it to customers.

To Reproduce Steps to reproduce the behavior:

  1. Open payment sheet
  2. Select a payment method (i.e. paypal) and proceed with redirect
  3. Cancel payment intent (i.e. using stripe cli)
  4. Authorize payment

Expected behavior The customer should be notified that the payment has been canceled (in non-technical terms) and it must be retried. The payment sheet should be closed.

Alternatively it should be possible to customize the error message.

Screenshots Screenshot 2024-07-09 at 11 03 24

nicolasguenther avatar Jul 09 '24 09:07 nicolasguenther

Hi @nicolasguenther, any updates on this, Is it only in test environment or same error getting in live env to??

nilesh-simform avatar Sep 02 '24 11:09 nilesh-simform

This error still exists in test and live environment

nicolasguenther avatar Sep 02 '24 11:09 nicolasguenther

@nicolasguenther Thank you for the feedback, and appreciate the suggestion! We revisit our roadmap periodically and will keep this idea in mind.

wooj-stripe avatar Apr 22 '25 19:04 wooj-stripe