Cover more Stripe hard decline codes

Created on 28 April 2024, 9 months ago

Problem/Motivation

Currently stripe 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

Proposed resolution

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

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇯🇴Jordan mhawwari

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024