Thread tagged as: Question, Shop

Perch Shop: Bypass Credit Card when order total is zero.

We have a situation where sometimes the order amount will be zero....

In those cases, I would like to bypass the gateway (braintree) and just process the order as there's no cost...

Is that something I can do?

Would I substitute braintree for the manual checkout process here by checking that grand_total = 0 somehow?:

Monty Lewis

Monty Lewis 2 points

  • 4 years ago

ok I see that I can check for a zero amount order with:


    if (perch_shop_cart_total([], true) > 0) {


} else {

But hat should I do here?



I don't think I can change gateways on the fly, can I?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you can change gateways if you like. It would seem logical to use the manual gateway in this case.