0

I want to add a minimum and maximum order total configuration for PayPal express checkout and Braintree credit card payment method. Just like bank transfer/ cash on delivery payment methods.

I tried with adding field in system.xml using custom module. but the min/max total is not validating in frontend.

Thanks in Advance!

enter image description here

5
  • You will have to define isAvailable() method in the payment model files. You will have to obviously override the models
    – Manish Joy
    Oct 26, 2021 at 5:40
  • define configuration from any of your module's system.xml and you can use "payment_method_is_active" observer Oct 26, 2021 at 5:44
  • @GohilRajesh Thanks! it worked. Oct 27, 2021 at 6:26
  • great then adding answer. Oct 27, 2021 at 7:27
  • you can update answer if you want to add specific information so it can be helpful to someone Oct 27, 2021 at 7:28

1 Answer 1

1

Define configuration from any of your module's system.xml and you can use payment_method_is_active observer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.