Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waiting payment #8

Open
jaonoctus opened this issue Jul 18, 2022 · 3 comments
Open

Waiting payment #8

jaonoctus opened this issue Jul 18, 2022 · 3 comments

Comments

@jaonoctus
Copy link

(edge case)

  • A customer is on the checkout page and decides to pay via BTCPAY
  • He clicks on proceed
  • A BTC invoice is created
  • Customer goes BACK to checkout page and chooses other payment method
  • Customer decides to pay the BTC invoice
  • WOO commerce is now awaiting the other payment method
  • Woocommerce will not register BTCPAY payment
@ndeet
Copy link
Collaborator

ndeet commented Aug 18, 2022

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
Copy link
Collaborator

ndeet commented Aug 18, 2022

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants