btcpayserver / woocommerce-greenfield-plugin

BTCPay Server for WooCommerce V2 plugin.
MIT License
16 stars 7 forks source link

Woocommerce plugin - Order status change when switching payment gateways #55

Closed i2dor closed 1 day ago

i2dor commented 2 weeks ago

Is your feature request related to a problem? Please describe.

There’s a problem when customers switch their payment method. If a customer accidentally or out of curiosity lands on the BTCpayserver payment gateway but doesn’t make the payment, then goes back, and uses a different payment gateway to complete the transaction, that order shows as paid. However, after the deadline set in BTCpayserver expires, the order is automatically marked as expired, even though it was paid through another payment gateway. This causes issues and needs manual intervention.

Describe the solution you'd like

The order may need to be canceled if the customer presses the back button OR, if payment is made through a different gateway it should consider it. In the second case, the payment module should register the alternate payment, cancel or mark the BTCpayserver order as paid through other forms, and close its own order without further action.

i2dor commented 2 weeks ago

I can see that this issue has been discussed here https://github.com/btcpayserver/woocommerce-greenfield-plugin/issues/38 and marked as resolved. I'm using version 2.6.2 of the plugin and I'm still experiencing this issue.

ndeet commented 1 week ago

Hey, do you have the option "Protect order status" enabled? It will prevent the order status from changing once it is either processing or completed status, which is the default after a payment went through successfully. It won't work though if there is another status set though.

ndeet commented 1 day ago

There is now a check to not update the order at all if the payment gateway does not match any of the BTCPay gateways, fixed with release 2.7.0 https://github.com/btcpayserver/woocommerce-greenfield-plugin/releases/tag/v2.7.0