Feat: validate live payment

This commit is contained in:
Damodar Lohani
2025-03-23 06:03:38 +00:00
parent 3f0dd17384
commit ce0c1808fb
+8
View File
@@ -739,6 +739,14 @@ export class Billing {
);
}
async validateInvoice(organizationId: string, invoiceId: string): Promise<Invoice> {
const path = `/organizations/${organizationId}/invoices/${invoiceId}/validate`;
const uri = new URL(this.client.config.endpoint + path);
return await this.client.call('PATCH', uri, {
'content-type': 'application/json'
});
}
async retryPayment(
organizationId: string,
invoiceId: string,