Payment taken from the wrong card

Created on 28 June 2023, over 1 year ago
Updated 23 July 2024, 5 months ago

Problem/Motivation

When going back and adding another card during checkout, it will say the the new card has been used but it will take payment from the original card instead.

Steps to reproduce

1. Create a vanilla Drupal site with commerce and commerce_stripe installed.
2. Setup your store with one product to test.
3. Setup your stripe details.
4. Add your product to the cart.
5. Go to checkout.
6. Add a test card and save it.
7. Go back to edit the payment step and add a second test card, select this card for use.
8. Continue through checkout.
9. It will state that the second card has been used but in reality the first card has been used to create the payment intent.

Proposed resolution

The stripe docs state that you cannot cancel a payment intent during checkout, you must instead expire the session which isn't ideal. Has anyone else experienced this issue? I will be working on trying to create a patch to solve this issue.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom RowanADev

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