disallow buying CCs through lnurl-pay and lightning address
This commit is contained in:
		
							parent
							
								
									090203b579
								
							
						
					
					
						commit
						5a8804de79
					
				@ -7,8 +7,7 @@ export const anonable = false
 | 
			
		||||
 | 
			
		||||
export const paymentMethods = [
 | 
			
		||||
  PAID_ACTION_PAYMENT_METHODS.P2P,
 | 
			
		||||
  PAID_ACTION_PAYMENT_METHODS.DIRECT,
 | 
			
		||||
  PAID_ACTION_PAYMENT_METHODS.OPTIMISTIC
 | 
			
		||||
  PAID_ACTION_PAYMENT_METHODS.DIRECT
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
export async function getCost ({ msats }) {
 | 
			
		||||
 | 
			
		||||
@ -96,6 +96,6 @@ export default async ({ query: { username, amount, nostr, comment, payerdata: pa
 | 
			
		||||
    })
 | 
			
		||||
  } catch (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' })
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user