btcpayserver / woocommerce-greenfield-plugin

BTCPay Server for WooCommerce V2 plugin.
MIT License
15 stars 8 forks source link

Partial payment not being recognized by either WooCommerce or BTCPay #16

Open ksdhans opened 1 year ago

ksdhans commented 1 year ago

I've ended up with a partially paid invoice (the person paid less than half). WooCommerce doesn't show the partial payment. When I click on the pay button it creates a new BTCPay which doesn't recognize the previously paid amount (which is in an older BTCPay invoice).

The original payment is from 20 days ago, so the customer obviously gave up.

Is something misconfigured? Or is this a bug?

ndeet commented 1 year ago

Hey sorry for the late reply, missed the notifications like always ...

You are right that use case is not covered. Partial payments are only tracked on the current invoice but if the customer tries to pay again after the partial invoice expired it will create a new invoice and the old one would not be taken into account in that case. You should still see the partial payment in the orders custom fields image

So far nobody had that case it seems (or they worked around it by customer directly contacting them) but yes this case is not covered properly. It is a bit tricky though and would require breaking changes, meaning a new major release as I would need to change the custom field data structure and maybe some rely on the current structure for accounting.

Note to self what needs to be done: