Skip to content

Commit

Permalink
refactor: move process3DsChallenge method to private scope
Browse files Browse the repository at this point in the history
luis-herasme committed Dec 4, 2024
1 parent af3c8d7 commit d108891
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/azul-api/secure/secure.ts
Original file line number Diff line number Diff line change
@@ -111,16 +111,6 @@ export class Secure {
);
}

async process3DsChallenge(input: { azulOrderId: string; cRes: string }) {
return await this.requester.safeRequest(
{
azulOrderId: input.azulOrderId,
cRes: input.cRes
},
Process.Process3DsChallenge
);
}

async post3DS(id: string, cRes: string) {
const session = this.securePaymentSessions.get(id);

@@ -134,6 +124,16 @@ export class Secure {
});
}

private async process3DsChallenge(input: { azulOrderId: string; cRes: string }) {
return await this.requester.safeRequest(
{
azulOrderId: input.azulOrderId,
cRes: input.cRes
},
Process.Process3DsChallenge
);
}

async capture3DS(id: string): Promise<
| {
redirect: true;

0 comments on commit d108891

Please sign in to comment.