Skip to content

Commit 33c2fd5

Browse files
authored
fix: invoice.verifyURL undefined from lnurl processor getInvoice (#325)
1 parent 88422fb commit 33c2fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/payments-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class PaymentsService implements IPaymentsService {
3838
public async getInvoiceFromPaymentsProcessor(invoice: Invoice | string): Promise<Partial<Invoice>> {
3939
try {
4040
return await this.paymentsProcessor.getInvoice(
41-
typeof invoice === 'string' ? invoice : invoice.id
41+
typeof invoice === 'string' || invoice?.verifyURL ? invoice : invoice.id
4242
)
4343
} catch (error) {
4444
console.log('Unable to get invoice from payments processor. Reason:', error)

0 commit comments

Comments
 (0)