This patch extends the basic functionality of "No payment" payment method so that it can be used multiple times on the same payment form.
For example, let's say you have two different payment options that do not require payment, e.g. "Scholarship" and "Waiver request".
Rather than having to implement two entirely new payment method to do exactly the same thing as this module, you can now simply rename the label from "No payment" to the appropriate method.
Additionally, you can provide explanatory text for each different "no payment" method.
This is a good solution for someone who wants various free payment methods but doesn't want to implement a bulky framework like http://drupal.org/project/payment
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | relabel_payment_options-commerce_no_payment-1781472.patch | 2.24 KB | aaronbauman |
Comments
Comment #1
aaronbaumanHere's the patch
Comment #2
aaronbaumanHere's a screenshot of the rule configuration:

And here's a screenshot of the payment form in action:

Comment #3
star-szrI like this idea. There is another patch over at #1759500: Add settings for payment form text and to optionally enforce order balance of 0 but this patch is more focused and in my opinion closer to being committable.
Two things right off the bat:
1. Remove any trailing whitespace.
2. The patch should be against 7.x-1.x-dev. You'll need to use git to download the dev version, there is no download available from the project page.
Why is commerce_cheque_description used here?
Is this dummy value still needed? The 'Merge in default values' bit is not in the dev version any more and the issue linked has been fixed.
Also, as in the patch at #1759500: Add settings for payment form text and to optionally enforce order balance of 0 the label and description values should be run through filter_xss().
Comment #4
xanoWon't-fixing this issue, because Commerce No Payment is now abandoned in favor of Payment's Basic payment method. See #1932462: Migrate Commerce No Payment to Payment for work on migrating existing sites. Read Configuring "no payment required" payment methods to see how to replicate Commerce No Payment's behavior using Payment yourself.