Merge pull request #134 from MAGICGrants/btcpay-payment-methods-fix

fix: use correct btcpay payment methods in /api/funding-required
This commit is contained in:
Artur
2025-01-14 22:29:26 -03:00
committed by GitHub

View File

@@ -143,11 +143,11 @@ async function handle(
)
paymentMethods.forEach((paymentMethod) => {
if (paymentMethod.paymentMethod === 'BTC') {
if (paymentMethod.paymentMethod === 'BTC-CHAIN') {
bitcoinAddress = paymentMethod.destination
}
if (paymentMethod.paymentMethod === 'XMR') {
if (paymentMethod.paymentMethod === 'XMR-CHAIN') {
moneroAddress = paymentMethod.destination
}
})