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

Manually marking an invoice as paid breaks a webhooks #7

Open
pavlenex opened this issue Jul 29, 2024 · 1 comment
Open

Manually marking an invoice as paid breaks a webhooks #7

pavlenex opened this issue Jul 29, 2024 · 1 comment

Comments

@pavlenex
Copy link
Contributor

We have noticed that when a customer pays with BTCPay and they over pay the invoice the payment is not added to their account. However, we have notieced to things.

If we manually mark the payment as settled in BTCPay the webhook instantly fails with a status of a red X and not other callback will work on any future payments unless we removed the webhook and add it again.

In addition to this. Even when the payment is manually changed to settled the BTCPay plugin in Xenforo cannot find the transaction.

 _`Error: Could not validate purchasable: Unable to find transaction '25067'`_ 

Below is the full error log in Xenforo minus some edited keys

array(3) { ["signature"] => string(71) "sha256=9c8b026d6XXXXXXXXXXXX0f3983205cf714438f5ad6508bac993e44580f" ["type"] => string(14) "InvoiceSettled" ["body"] => string(472) "{ "deliveryId": "XGCABCXXXXXXXXXbWA2xZc", "webhookId": "BMu7LCXXXXXXXXXXX6rVCz", "originalDeliveryId": "4t2L2VXXXXXXspHw9w", "isRedelivery": true, "type": "InvoiceSettled", "timestamp": 1722213086, "manuallyMarked": true, "overPaid": false, "storeId": "CH3P2hYfLL3XXXXXXXXXXXXXSvsjyzGpSPJTYa", "invoiceId": "GQHsXXXXXXXXXKEHDgD", "metadata": { "request_key": "KYJjkR24XXXXXXXXXXXOxH46c7oe", "purchase_request_id": 18056 } }" }

We are using Xenforo 2.2.16 and the latest BTCPay © BTCPay Server v1.13.5+30d91d0bd BTCPay Provider 1.0.0 ( Xenforo Plugin )

Thank you

Originally posted by @BenjaminM007 in btcpayserver/btcpayserver#6126

@pavlenex pavlenex transferred this issue from btcpayserver/btcpayserver Jul 29, 2024
@021-projects 021-projects changed the title We have noticed that when a customer pays with BTCPay and they over pay the invoice the payment is not added to their account. However, we have notieced to things. Manually marking an invoice as paid breaks a webhooks Jul 30, 2024
@021-projects
Copy link
Collaborator

Hello, @BenjaminM007!

If we manually mark the payment as settled in BTCPay the webhook instantly fails with a status of a red X and not other callback will work on any future payments unless we removed the webhook and add it again.

Does this issue only occur with overpaid invoices? It seems that if you mark an unpaid invoice as settled, there is no such issue.

Could you please clarify what exactly you are paying for: user upgrades or something else from custom add-ons?

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