mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 12:27:59 -05:00
fix(funding-required): get bitcoin address from correct payment method
This commit is contained in:
@@ -137,10 +137,9 @@ async function handle(
|
||||
const { data: paymentMethods } = await btcpayApi.get<BtcPayGetPaymentMethodsRes>(
|
||||
`/invoices/${invoice.id}/payment-methods`
|
||||
)
|
||||
console.log(paymentMethods)
|
||||
|
||||
paymentMethods.forEach((paymentMethod) => {
|
||||
if (paymentMethod.paymentMethod === 'BTC-OnChain') {
|
||||
if (paymentMethod.paymentMethod === 'BTC') {
|
||||
bitcoinAddress = paymentMethod.destination
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user