diff --git a/backend/mempool-config.sample.json b/backend/mempool-config.sample.json index 85be1e664..018c079d2 100644 --- a/backend/mempool-config.sample.json +++ b/backend/mempool-config.sample.json @@ -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": "" } diff --git a/backend/src/api/donations.ts b/backend/src/api/donations.ts index ced8ad31b..1c13f7a79 100644 --- a/backend/src/api/donations.ts +++ b/backend/src/api/donations.ts @@ -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) => {