Set payment status to complete for $0 payments

Created on 9 December 2016, over 8 years ago
Updated 18 August 2025, 6 days ago

Currently $0 charges are properly ignored which allows things to be done like use Stripe to collect credit card details for payment at a later date. However, a payment will remain in a `pending` state because the case of a $0 charge is not handled.

The attached patch will set the status message to "No charge required." and set the status to `COMMERCE_PAYMENT_STATUS_SUCCESS`. This will open up thing like use the "Order first paid in full" to be utilised for free orders as a way to sign people up to subscriptions.

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands kingdutch

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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