Specifically, by adding a select list for available payment methods and putting an action on the Rule to enable the specified payment method.

Comments

joshmiller’s picture

StatusFileSize
new3.45 KB

Attached is a patch that requires a user to select at least one payment method to enable and allows them to select more than one. Very proud of this one :) Thanks to Ryan for walking me through some of the more complicated bits.

joshmiller’s picture

Status: Active » Needs review
joshmiller’s picture

StatusFileSize
new3.33 KB

Needed some cleanup for the checklist to make sense.

Status: Needs review » Needs work

The last submitted patch, enablepaymentactions-1896690-3.patch, failed testing.

joshmiller’s picture

Status: Needs work » Needs review

MySQL wasn't available in the last test, thus the errors.

joshmiller’s picture

JulienD’s picture

Status: Needs review » Reviewed & tested by the community

Hi

I've tested the patch and it's working as expected. When I create a new payment rule, I can select every payment method I need and when I submit the form, all the selected payments are put in the "action" section, ready to be enabled.

Thx Josh for the patch.

rszrama’s picture

Status: Reviewed & tested by the community » Fixed

Tweaked this to only support enabling one payment method per rule due to the limitations of the current system.

Commit: http://drupalcode.org/project/commerce.git/commitdiff/b17da63

Automatically closed -- issue fixed for 2 weeks with no activity.