Cover more Stripe hard decline codes

Created on 15 April 2025, 13 days ago

Problem/Motivation

Currently, the module only checks for card_not_supported as the only hard decline exception coming from Stripe. Stripe has additional decline codes that should not be retried:

  • incorrect_number
  • lost_card
  • stolen_card
  • pickup_card

Steps to reproduce

Proposed resolution

To throw HardDeclineExceptions for these error codes in Drupal\commerce_stripe_payment_request_button\ErrorHelper

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

3.8

Component

Code

Created by

🇯🇴Jordan mahseri

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024