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.

Replace webhook service with liquidity service

See original GitHub issue

All current (and future) webhook events involve depositing or withdrawing payment liquidity. webhookService.send could be replaced by liquidityService.deposit/liquidityService.withdraw so that callers do not need to manage the deposit/withdrawal.

However:

  • Outgoing payments currently looks at the webhook response code to cancel a funding payment or requote a cancelled payment. How could liquidity service methods expose/support that?
  • Outgoing payments currently send outgoing_payment.cancelled and outgoing_payment.completed events even if there is not a leftover balance to withdraw. Are such events necesary? If so, could we keep a basic webhook service that the outgoing payments service calls directly in those cases?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sentientwafflecommented, Jan 29, 2022

withdrawal transfer ids should be committed to postgres before creating the two-phase tigerbeetle transfers.

More specifically, this is an issue if the transfer in question doesn’t have a timeout. If it has a timeout, then it can get cleaned up automatically by TigerBeetle.

0reactions
wilsonianbcommented, Feb 1, 2022

Closing in favor of #225

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying APIs and Webhooks For B2B Speed - PYMNTS.com
This Deep Dive explores how companies are deploying APIs and webhooks to make instant payments a reality.
Read more >
How Does Webhook Work on Blockchain | GetBlock.io
Specialized services help to track all changes in the blockchain network via API. Various webhook services can be used to track all operational...
Read more >
Reporting APIs: How To Make Them Better, Stronger, Faster
Webhooks : A webhook is an event-triggered HTTP callback that sends data to a third party when a specific event occurs. These updates...
Read more >
Mempool API - Blocknative Documentation
This documentation describes how to connect to and use Blocknative's transaction monitoring service using webhooks. The service delivers near real time ...
Read more >
How in-app messaging can help marketplaces achieve liquidity
Nothing else so directly connects and facilitates communication between demand and supply, buyer and seller, or customer and service provider ...
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