This question has been flagged
1 Reply
67 Views

Hi,

Is it possible in v17 to setup a price specific rule for a payment method, so it is only visable for eCommerce customers if the order is above a specific amount? We want to make this rule for the wire transfer payment provider.

Avatar
Discard
Best Answer

Hi

In Odoo default we have one feature to add the maximum amount for any payment method but there is no option for a minimum option to restrict payment method.

But this is a very small customisation if you want you need to add one field min_amount in payment.provider and then add the same field in view as well.

after that, there is one function that verifies all conditions like country and state and on this basis, they allow Payment providers on the website so you need to inherit the function and then simply check the condition for a minimum price if verified then ok then remove the provider from the provider.

function name = _get_compatible_providers

Thanks

Avatar
Discard