btcpayserver / woocommerce-plugin

Plugin for connecting Woocommerce with BTCPayServer
https://btcpayserver.org/
Other
51 stars 41 forks source link

Invoice not refreshing products or total amount due if user modifies cart. #60

Open kvnvvn opened 3 years ago

kvnvvn commented 3 years ago

When a user adds items to the cart and goes to the BTCPay invoice it's fine. If they back out and modify the cart the BTCPay invoice is not updated with the new total.

The id= in the url is remaining the same. When I look in the logs after modifying the cart and returning to the invoice I see "[Info] Existing BTCPay invoice has already been created, redirecting to it..."

This makes it impossible for a user to add or remove products from the cart and get an invoice that reflects an accurate amount. The plugin should not only check that the invoice exists but that the total transaction amount and ordered products are the same.

Kind of makes me think this plugin hasn't been used much in the wild :/

WillBrubaker commented 3 years ago

I've tried to reproduce this on a test site here https://wctesting.tk/btcpay/ but updating the cart updates the invoice.

Are you using an old version of WooCommerce by chance? Are you sure there isn't some other conflicting software behind this?