• In the main plugin you are overwriting the hook woocommerce_cart_needs_payment (woocommerce-postfinancecheckout.php:572), which breaks a feature to allow orders that in some cases can be free (f.E. with coupon or free products). I personally recommend to implement a check or is there any specific reasoning for this hook at all?

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi @svenvonarx, do you think you can provide different setup / instruction on the different use case it would be required for ?

    Thank you in advance

    Thread Starter sven.vonarx

    (@svenvonarx)

    Hey @thibaultwallee
    The exact use case in our scenario would be that you use a coupon that puts the total of the cart to 0. Then the flag needs_payment should be false, since it doesn’t make sense to use any payment gateway, since there is nothing to be paid – with your hooks that set this flag to true in every case, it still would require a payment gateway. When you use TWINT for example it then fails with an error. Not sure how to explain further since it can be a use case in every shop. We tested this on a blank setup with only WordPress, WooCommerce and the PostFinance Checkout plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.