question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotificationUrl dont query invoice id

See original GitHub issue

Hey,

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:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
NicolasDoriercommented, Jan 10, 2019

As @JeffVandrewJr said, you have logs about errors BTCPay got while trying to send notification on the invoice’s page in BTCPay.

0reactions
JeffVandrewJrcommented, Jan 11, 2019

@CarlosRoldanx No problem!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found