Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max amount of Order with specific payment gateaway #1

Open
kellyjenx opened this issue Jul 17, 2018 · 1 comment
Open

Max amount of Order with specific payment gateaway #1

kellyjenx opened this issue Jul 17, 2018 · 1 comment

Comments

@kellyjenx
Copy link

kellyjenx commented Jul 17, 2018

Does anyone know how we can already do it with API maybe?
Or is it possible to add this feature into selly-woocommerce?

Basically what i'm trying to do is:
"If the order exceeds the value of $XX Do not accept Paypal payments."

This is kinda needed to fight against People that want to buy ALOT of products and chargeback after it :(

Any ideas?

@Hackinet
Copy link

Hackinet commented Sep 12, 2018

@kellyjenx On line 246 you can add this:
if(($_POST['payment_gateway']=="paypal")) && ($order->get_total()>$MAX_AMOUNT)) { echo "PayPal Max Amount Reached."; return false; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants