We have a Drupal 8 Commerce 2 site that needs to dynamically remove the payment gateway for users with a specific role that will be 'billed later'.

The conditions for the payment gateways all showing a gateway for specific roles but does not allow for negating the settings.

Is there a way to accomplish allow customers with a role to bypass payment during checkout? Is there a hook that we can use to perhaps accomplish this through code since we can't negate the setting in the UI?

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.