isExpired aborts payments that could pass on Stripe

Created on 7 May 2024, 7 months ago

Problem/Motivation

According to Stripe, It is possible for a card to be deducted even when it's expired.

If a card was saved to Stripe before it expired, it sometimes can continue to be charged after its expiration date has passed. The decision to allow the charge to go through is entirely up to the issuing bank...

Calling assertPaymentMethod in createPayment() checks for the card's expiry and prevents the payment attempt from going through.

🐛 Bug report
Status

Active

Version

3.8

Component

Code

Created by

🇯🇴Jordan mhawwari

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

Comments & Activities

Production build 0.71.5 2024