blockonomics / whmcs-bitcoin-plugin

Accept bitcoins on your WHMCS, payments go directly into your wallet
8 stars 12 forks source link

Even though payment is confirmed the initial screen shows as unpaid #67

Closed yswery closed 3 years ago

yswery commented 4 years ago

I have set up that there is 0 confirmation. As soon as the transition hits the blockchain the user is redirected to see the screenshot below where the payment is done correctly (and services provisioned) but the first screen shows "unpaid" while if you refresh the page once it then shows the correct "paid"

image

blockonomics commented 4 years ago

Hi... Thanks for logging. We are looking into this

blockonomics commented 4 years ago

This is being caused due to delay/time taken in callback processing. Due to which after a while it shows Paid.

This issue doesn't exist in 7.8.3+ which shows order confirmation on payment (also use the latest blockonomics whmcs module) Screenshot_2020-01-09 Shopping Cart - WHMCS Siivikko Dev Site

yswery commented 4 years ago

Hi

I am using latest (git) version of the module and my WHMCS is on 7.9.0

when I make payments I get redirected to: https://billing.mywebsite.com/viewinvoice.php?id=XXXXXXXX&paymentsuccess=true

But even though paymentsuccess set as TRUE the invoice still shows as "unpaid" (after a refresh its fine, also all post payment hooks work great)

blockonomics commented 4 years ago

Thanks for reporting this. We are working on a fix for this. The immediate fix for this is to switch to atleast one confirmation (would be more secure too)

shivaenigma commented 4 years ago

This has to fixed on server. The websocket code and callback code trigger at different times (that are very apart).