Skip to content

The service side of Dash Checkout - in case you'd like to run your own full node.

License

Notifications You must be signed in to change notification settings

dashhive/dash-merchant-services

Repository files navigation

dash-payment-webhooks

Get webhooks when your address is paid, duh!

Pre-Requisites

You'll need dashd already.

See dashhive/dashd-installer#4.

Setup

rsync -avhP example.env .env
rsync -avhP ./dashcore-node.example.json ./dashcore-node.json
npm ci
npm run start

API

POST /api/webhooks
Bearer my-api-access-token
{
    url: "https://user@my-super-long-token:example.com/api/dash/payment-received",
    address: "Xxxxxxxxxxxxxxxxxxx",
}

{
    url: "https://user@my-s*************en:example.com/api/dash/payment-received",
    address: "Xxxxxxxxxxxxxxxxxxx",
}

To create a webhook token scoped to certain allowed hostnames:

node ./bin/gentoken.js example.com,example.net

Then give the dwh_ part to the customer, and save the line in ./tokens.json.

About

The service side of Dash Checkout - in case you'd like to run your own full node.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published