disallow buying CCs through lnurl-pay and lightning address

This commit is contained in:
k00b 2025-03-03 18:03:34 -06:00
parent 090203b579
commit 5a8804de79
2 changed files with 2 additions and 3 deletions

View File

@ -7,8 +7,7 @@ export const anonable = false
export const paymentMethods = [ export const paymentMethods = [
PAID_ACTION_PAYMENT_METHODS.P2P, PAID_ACTION_PAYMENT_METHODS.P2P,
PAID_ACTION_PAYMENT_METHODS.DIRECT, PAID_ACTION_PAYMENT_METHODS.DIRECT
PAID_ACTION_PAYMENT_METHODS.OPTIMISTIC
] ]
export async function getCost ({ msats }) { export async function getCost ({ msats }) {

View File

@ -96,6 +96,6 @@ export default async ({ query: { username, amount, nostr, comment, payerdata: pa
}) })
} catch (error) { } catch (error) {
console.log(error) console.log(error)
res.status(400).json({ status: 'ERROR', reason: 'could not generate invoice' }) res.status(400).json({ status: 'ERROR', reason: 'could not generate invoice to customer\'s attached wallet' })
} }
} }