- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
In dealing with π "There is no active transaction" during Checkout Closed: outdated , I noticed that right now we cannot add an existing charge to a Commerce payment. This was discovered when the error was thrown to the user but the payment had been successful in Stripe, but the txn was not saved to the Commerce order.
One helpful solution to this would be to have the ability to specify a charge by its ID (e.g. ch_ab12cd34ef56L
), which in turn would allow us to fire the "Paid in full" hooks. Right now, if a payment is missing from an order, the only option we have is to create a new charge with a credit card form. But in the cases when a customer has already been charged but their checkout fails due to some other error, all we can do is add a discount or otherwise complete it manually.
I think this will take a modification to our current Terminal form to offer both "Existing Stripe charge" and "Stripe" as options. Stripe will show the card form as usual, but the "Existing charge" option just presents us with a single text field looking for a charge_id. Once submitted, we ping the Stripe URL to verify that the charge exists (and that it hasn't already been applied to this order). If successful, we then fire the usual set of Commerce APIs.
Closed: outdated
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.