Skip to content

Commit

Permalink
chore: update 3ds onSuccess callback signature (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjopa authored Apr 19, 2023
1 parent 1a75399 commit 5522686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/three-domain-secure/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function getThreeDomainSecureComponent(): TDSComponent {
return onError(err);
}

return value(true, result);
return value(result);
};
},
},
Expand Down
2 changes: 1 addition & 1 deletion test/integration/tests/three-domain-secure/happy.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe(`paypal 3ds component happy path`, () => {
return window.paypal
.ThreeDomainSecure({
createOrder: () => "XXXXXXXXXXXXXXXXX",
onSuccess: expect("onSuccess", (_err, result) => {
onSuccess: expect("onSuccess", (result) => {
if (!result.liability_shift) {
throw new Error("missing liability_shift in result");
}
Expand Down

0 comments on commit 5522686

Please sign in to comment.