Decouple token creation from charging and submitting order

Created on 2 November 2017, almost 8 years ago
Updated 18 August 2025, about 1 month ago

Currently, the module creates a token and then immediately charges it. This has the side effect of potentially charging a user's card before they've finished checking out (if the payment form is not on the last page of checkout).

Let's instead take the token and store it for the duration of the checkout process. A user can then see the card details that they've entered, but must click a "remove" or "edit" button to update their method. This will reveal the card form again, destroy the token, and allow the user to re-enter her info.

πŸ“Œ Task
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States torgosPizza Portland, OR

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024