stripe-react-native
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
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:
- Open payment sheet
- Select a payment method (i.e. paypal) and proceed with redirect
- Cancel payment intent (i.e. using stripe cli)
- 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
Hi @nicolasguenther, any updates on this, Is it only in test environment or same error getting in live env to??
This error still exists in test and live environment
@nicolasguenther Thank you for the feedback, and appreciate the suggestion! We revisit our roadmap periodically and will keep this idea in mind.