btcpayserver / woocommerce-greenfield-plugin

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

Waiting payment #8

Open jaonoctus opened 2 years ago

jaonoctus commented 2 years ago

(edge case)

ndeet commented 2 years ago

Hi @jaonoctus! Sorry for the late reply was on holiday and did not see the notification.

  • A BTC invoice is created
  • Customer goes BACK to checkout page and chooses other payment method
  • Customer decides to pay the BTC invoice

Can you please clarify "other payment method"? Is this another PM offered by BTCPay or something completely different like Stripe?

So the customer goes back to the shop but has noted down the BTCPay invoice link somewhere to come back later to trick the system? Or how should this happen in a normal user flow?

ndeet commented 2 years ago

I can see that this can happen when both payment methods are offered by BTCPay, e.g. first user goes to checkout and selects LTC, then goes back and selects BTC (which creates a new invoice on BTCPay end) because we only store the latest invoice id in the order metadata. But then again the user would have actively needed to copy the first BTCPay invoice url somewhere or have that address in his wallet already scanned which sounds like it rarely happens, or do you experience that problem on a regular bases?

jaonoctus commented 2 years ago

Can you please clarify "other payment method"?

Any other configured in woocomerce

So the customer goes back to the shop but has noted down the BTCPay invoice link somewhere to come back later to trick the system?

Yes. So the user would back to the checkout page for any reason and then choose other payment method other than BTCPay. The status of the order will be something like "On Hold" but even if he send funds to the address, it will not be confirmed by woocomerce