Download & Extend

Commerce No Payment

This payment module adds a "No payment required" payment method (for free stuff).

By default, this payment method will be available to all orders. Here are the steps to configure this payment method to only show up for orders with a balance of 0.00:

  1. edit the No Payment payment method (Store > Configuration > Payment Methods)
  2. Add condition
  3. select Order balance comparison as the Condition to add (Data selector will be commerce_order)
  4. set the Operator to =
  5. the Value should be 0
  6. Save the condition
  7. Save changes to the payment method

You may also want to hide all other payment methods so that "No payment required" is the only option on an order with a balance of 0.00.

  1. edit a payment method you want to hide (Store > Configuration > Payment Methods)
  2. Add condition
  3. select Order balance comparison as the Condition to add (Data selector will be commerce_order)
  4. set the Operator to >
  5. the Value should be 0
  6. Save the condition
  7. Save changes to the payment method

This module is also useful for testing; making it faster to to pay the full payment with one click.

Note that you may not need this module at all, if you don't *need* this pseudo-payment for your testing or implementation. Just go to the Checkout Settings (admin/commerce/config/checkout) and drag the "Payment" pane to "disabled". You'll need to trigger order completion on something other than payment in that case, of course.

Downloads

Version Downloads Date Links
7.x-1.0-beta1 tar.gz (7.74 KB) | zip (8.32 KB) 2011-Sep-22 Notes

Project Information


Maintainers for Commerce No Payment

  • mr.moses - 1 commit
    last: 32 weeks ago, first: 32 weeks ago
  • rfay - 1 commit
    last: 35 weeks ago, first: 35 weeks ago

Issues for Commerce No Payment

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here