In drupal commerce, while adding a new payment gateway [ Home >> Administration >> Commerce >> Configuration ], there's a section called Conditions where you can specify a certain condition that decides whether that payment method should be visible or not.

I want to add a custom made condition ( I have some code that decides if this payment method should be visible or not )

I just need a hint on where can I go look for to code something like this.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.