subscribeToInvoice() call forget invoices after nodejs restarts
See original GitHub issueIf nodejs restarts at the time an invoice is held
invoice with hash: a76fa7f91fffca163edbb1373c0358b065dc216397f02d51761f10f588e3db19 is being held!
Node loses tracking of this event and when releasing, if the invoice is paid, but the subscribeToInvoice does not follow the normal workflow, the status is not changed to PAID_HOLD_INVOICE
and as a consequence the buyer is not paid.
We need to think a way of avoid this situation, one is never restart nodejs if at least one invoice is held, but we need to have a procedure to follow if the server crashes.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Node.js: Automatic Syncing of iOS Subscription Status
Automatic iOS Subscription renewal and cancellation in Node.js. Managing subscriptions for iOS apps is critical infrastructure to ensure users have access ...
Read more >How to work with Node.js App - Hosting - Namecheap.com
PLEASE NOTE: During the restart, it won't be possible to perform any actions with the app. To edit the application, open cPanel >>...
Read more >Node JS auto restart all forever JS process when server goes ...
A (NodeJS) server should not stop for no reason. Most of the time, it's because of a 500 Error that have not been...
Read more >Retrieve an upcoming invoice – Node - Stripe API reference
At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including...
Read more >sahat/hackathon-starter: A boilerplate for Node.js ... - GitHub
A while later, you might have an initial project up on GitHub, ... It watches for any changes in your node.js app and...
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
I’ve just tested it. It works perfectly. For the sake of completeness I updated my test cases results:
Order = BUY.
/fiatsent
is executed./fiatsent
command./fiatsent
is executed./release
is executed.Order = BUY.
/release
is executed./release
command./release
is executed.I will open a PR with the changes.
Good! I will start testing by my own.