Skip to content

Commit

Permalink
Adds verifyPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-herasme committed May 4, 2024
1 parent bcb66b7 commit 0f989d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ class AzulAPI {
return this.checkAzulResponse(response);
}

async verifyPayment(customOrderId: string): Promise<AzulResponseWithOk> {
const response = await this.request({ customOrderId });
return this.checkAzulResponse(response);
}

private checkAzulResponse(json: any): AzulResponseWithOk {
return {
...json,
Expand Down

0 comments on commit 0f989d2

Please sign in to comment.