mirror of
https://github.com/appwrite/console.git
synced 2026-04-07 19:17:46 +00:00
Feat: validate live payment
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user