I have a website in Magento 1. I want to limit the credit card purchase to $2000 per customer, per week. If the amount goes over $2000, then they don't see the credit card or the PayPal option, they can only see the bank transfer option.

Is there any way to achieve this.


You can archive this by hiding the payment methods by observer event.

Please check this tutorial to hide the payment: https://meetanshi.com/blog/disable-payment-method-programmatically-in-magento/

In observer, you have to get the order collection of the current customer and then filter the collection by a particular payment method and calculate the total order amounts.

Now, based on the total amount of order, you can set the conditions and restrict the particular payment methods.

| improve this answer | |

Your Answer

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

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