Skip to main content

Update Payment Error


Use Update Payment Error to show a payment processing error when the submitted credit card details cannot be accepted.

This screen keeps the user on the payment details page and displays the error in a popup.



This screen includes:

#ElementDescription
1HeaderDisplays Update payment details with back navigation and settings access.
2Payment method sectionDisplays the selected payment method.
3Credit card selectorShows the selected credit card payment option.
4Card details fieldsDisplays the entered card number, expiration date, and security code.
5Save card indicatorShows the option to save card details securely.
6Error modalDisplays the card validation error.
7Error messageDisplays Your card number is incorrect.
8OK actionDismisses the error modal and returns to the payment details screen.
9Update actionSubmits the payment details when the form is valid.

Workflow

  1. Open Update payment details.
  2. Enter or confirm card details.
  3. Select Update.
  4. Validate the submitted payment details.
  5. Display the error popup when validation fails.
  6. Select Ok to dismiss the popup.
  7. Return to the payment details screen.

Validations

ScenarioApp BehaviorSDK Output
Session invalidBlock payment updatestate = unauthenticated
Card number invalidDisplay card number error popuperror = invalid_card_number
Card details invalidDisplay payment error popuperror = invalid_card
Payment method unavailableDisplay payment method errorerror = payment_method_unavailable
Update succeedsRefresh the displayed payment methodpaymentMethod = updated
Update failsDisplay payment error popupstate = error

Actions

ScenarioApp BehaviorSDK Output
Update selectedSubmit payment detailsPATCH /api/v3/payment-method
Card number rejectedDisplay Your card number is incorrect.error = invalid_card_number
Payment processing failsLoad payment error contentPUT /api/v3/payment-method/error
Ok selectedDismiss the error popupstate = dismissed
Error dismissedReturn to payment detailsstate = unchanged

Endpoint Resources

Update Payment Error

PUT 

v3/payment-method/error

Displays a payment system error message in a popup when payment method processing fails.