We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
invoice.verifyURL
1 parent 88422fb commit 33c2fd5Copy full SHA for 33c2fd5
src/services/payments-service.ts
@@ -38,7 +38,7 @@ export class PaymentsService implements IPaymentsService {
38
public async getInvoiceFromPaymentsProcessor(invoice: Invoice | string): Promise<Partial<Invoice>> {
39
try {
40
return await this.paymentsProcessor.getInvoice(
41
- typeof invoice === 'string' ? invoice : invoice.id
+ typeof invoice === 'string' || invoice?.verifyURL ? invoice : invoice.id
42
)
43
} catch (error) {
44
console.log('Unable to get invoice from payments processor. Reason:', error)
0 commit comments