Make BTCPay webhook configurable.

refs #122
This commit is contained in:
softsimon committed 2020-10-08 00:15:26 +07:00
1 parent f781c73db1
commit cf8b51b937
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -24,5 +24,6 @@
"SSL_CERT_FILE_PATH": "/etc/letsencrypt/live/mysite/fullchain.pem",
"SSL_KEY_FILE_PATH": "/etc/letsencrypt/live/mysite/privkey.pem",
"BTCPAY_URL": "",
"BTCPAY_WEBHOOK_URL": "",
"BTCPAY_AUTH": ""
}
+1 -1
View File
@@ -24,7 +24,7 @@ class Donations {
'orderId': orderId,
'currency': 'BTC',
'itemDesc': 'Sponsor mempool.space',
'notificationUrl': 'https://mempool.space/api/v1/donations-webhook',
'notificationUrl': config.BTCPAY_WEBHOOK_URL,
'redirectURL': 'https://mempool.space/about'
};
return new Promise((resolve, reject) => {