Webhooks & Events
Webhooks can be setup in the LNPay.co dashboard.
Event Display Name
Wallet Transfer IN
Wallet Transfer Out
Every payload will follow the same format. an Event ID is provided to identify the event, along with an object of the type details. The
datasection will always contain an array of relevant objects to the event. The key of each object in the data object will match the object id:
wal_czDztN5eJ4r5sJfor now this seems the easiest way to plan for future changes and additions.
Pay careful attention to
passThruvalue. This is where context data that you have set previously, will be available throughout the journey of the wallet transaction.
NOTE: there are some server parameters that are passed through in this field as well, so it is a good idea to prefix your variables with something e.g.
Another way to send
an event from above
a unique ID for this webhook request
hmac_sha256 signature of payload, if you provide a secret
standard user agent