Skip to content

Commit

Permalink
fix: pass apiRequestOptions to initiateThreeDs function (#155)
Browse files Browse the repository at this point in the history
* forward api option for initiateThreeDS

* bump pojs

* test

* build scripts

---------

Co-authored-by: jakub-jasinski-cko <[email protected]>
Co-authored-by: Jakub Jasiński <[email protected]>
  • Loading branch information
3 people authored Jan 2, 2025
1 parent 59c9bcd commit 8f912b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/modal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/processout.js

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions src/processout/processout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,8 @@ module ProcessOut {
source: string,
options: any,
success: (data: any) => void,
error: (err: Exception) => void
error: (err: Exception) => void,
apiRequestOptions?: apiRequestOptions
): void {
const url: string = `invoices/${invoiceID}/capture`;
this.threeDSInitiationURL = `invoices/${invoiceID}/three-d-s`;
Expand All @@ -1507,7 +1508,8 @@ module ProcessOut {
source,
options,
success,
error
error,
apiRequestOptions
);
}

Expand Down Expand Up @@ -1682,7 +1684,8 @@ module ProcessOut {
cardID,
options,
success,
error
error,
apiRequestOptions
);
}.bind(this);

Expand All @@ -1707,7 +1710,8 @@ module ProcessOut {
cardID,
options,
success,
error
error,
apiRequestOptions
);
}.bind(this),
error,
Expand Down

0 comments on commit 8f912b7

Please sign in to comment.