diff --git a/src/services/payments-service.ts b/src/services/payments-service.ts index 40cef860..3bbbe9e5 100644 --- a/src/services/payments-service.ts +++ b/src/services/payments-service.ts @@ -38,7 +38,7 @@ export class PaymentsService implements IPaymentsService { public async getInvoiceFromPaymentsProcessor(invoice: Invoice | string): Promise> { try { return await this.paymentsProcessor.getInvoice( - typeof invoice === 'string' ? invoice : invoice.id + typeof invoice === 'string' || invoice?.verifyURL ? invoice : invoice.id ) } catch (error) { console.log('Unable to get invoice from payments processor. Reason:', error)