Cart that has 0 as balance gets rejected from PayPal .. what is the work around?
-
Cart that has 0 as balance gets rejected from PayPal .. what is the work around?
-
Hi @mikeyapina,
May I know why you sent zero amount to PayPal. As if there is no payment then why should be gone to PayPal. Rather than handling it at your own code.
You should have to bypass the zero amount. Means all things should be done in proper order like order creation, shipping, etc except the payment method.
-
@devansh-webkul yes I am trying to give some something for free by using the discount code. I want them to receive the URL back for downloadable.
M.
-
You need to check the price with zero. If it's zero then bypass the payment gateway and the rest procedure is the same.
-
@devansh-webkul Bagiato my default never lets me put the prize as zero. Plus I want the product to not be zero but they have a discount code to make it zero. This way I can take off the discount. But, is the 0 price point now new?
Thanks,
M.
-
Hi @mikeyapina,
Yes, this something you need to customize at your own end. Cases need to be handled.
-
@devansh-webkul so then we have to at least charge $1 there is no way to redirect back ... i would have to write an exception.
-
I want to say that if you want to give some product for free then below is the flow,
Checkout -> Place Order -> Check With Zero -> Skip the payment method -> Create Order
(If Bagisto not allowing zero then you need to handle this case at your own because this is customization.)
Checkout -> Place Order -> If value is not zero -> Go to payment method -> Pay the money -> Create Order