NotificationUrl dont query invoice id
See original GitHub issueHey,
I am severely trying to get the invoice id from the notificationUrl. I added a POST route to handle the notification and print them in the server console the request. However, I am not getting anything and this is quite frustrating. I have gone through the Bitpay documentation and nothing…
I made sure the request is HTTPS. This is the code in the client:
<form method="POST" action="https://lnd.satoshis.games/apps/Gg4XypPUkxv5XiBjeEjjaxxLh5X/pos">
<input type="hidden" name="email" value="customer@example.com" />
<input type="hidden" name="orderId" value="CustomOrderId" />
<input type="hidden" name="notificationUrl" value="https://satoshis.games/confirm" />
<input type="hidden" name="redirectUrl" value="https://satoshis.games/start" />
<button type="submit" name="choiceKey" value="Satoshis Games sticker" class="nes-btn is-success">CONFIRM</button>
</form>
This is the code in the server:
async getNotification({request}) {
try{
console.log(request.id)
}catch(error){
console.log(error)
}
}
The route is /confirm
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Notification URL / responses · Issue #205 · btcpayserver ...
The right way to do is to query the invoice on your BTCPayServer by fetching with the invoice id. For the duplicates, the...
Read more >Reduce missing subscriptions and change notifications
Subscribe to Microsoft Graph lifecycle notifications to help you minimize the risk of missed change notifications or removed subscriptions.
Read more >Enable the Simplified Admin Experience for your ...
This article describes how to enable the simplified admin experience for your Microsoft Graph connector in the Teams admin center.
Read more >How to test Business Central webhooks
I don't think webhooks need an introduction. ... is that Business Central calls the notification URL passing a validationToken parameter.
Read more >Subscription validation request failed. Response must ...
The Microsoft webhook subscription is sending weird body data and no text in the validationToken parameter. Is there anyone on the Microsoft ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As @JeffVandrewJr said, you have logs about errors BTCPay got while trying to send notification on the invoice’s page in BTCPay.
@CarlosRoldanx No problem!