oc-mall-plugin icon indicating copy to clipboard operation
oc-mall-plugin copied to clipboard

Checkout with zero amount results to Invalid request

Open buzmate opened this issue 1 year ago • 2 comments

Hello. I have an issue when my clients use coupons and the cart total is zero during checkout if they are still required to select the payment method, which is Paypal and on the final step the application tries to get the payment from paypal for zero amount in result the paypal to return: "Failed to process your payment Your order has been processed but the payment failed.

Please try again to pay this order.

The following error occurred: Invalid request - see details"

Any advice? Is there any setting to disable the requirement to select a payment method when the total amount is zero?

buzmate avatar Apr 20 '23 09:04 buzmate

There is a minimum amount to make a transaction (for example for Stripe it is $0.5 US). In the logic of a free transaction, the payment gateway must be forced into invoice during checkout

cyril-design avatar Oct 10 '23 12:10 cyril-design

Hey,

This is how I tackled this issue: https://github.com/OFFLINE-GmbH/oc-mall-plugin/issues/847

Hope it helps!

chocolata avatar Oct 25 '23 18:10 chocolata

Free orders are now bypassing the payment gateway and are immediately marked as paid.

Available in v3.5.0.

tobias-kuendig avatar Aug 24 '24 06:08 tobias-kuendig