Skip to content

Commit

Permalink
add isVerifying param
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed Jul 23, 2024
1 parent ade7ac2 commit 7e67295
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/libs/API/parameters/VerifySetupIntentParams.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
type VerifySetupIntentParams = {
accountID: number;
isVerifying: boolean;
};
export default VerifySetupIntentParams;
4 changes: 2 additions & 2 deletions src/libs/actions/PaymentMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ function clearPaymentCard3dsVerification() {
* Properly updates the nvp_privateStripeCustomerID onyx data for 3DS payment
*
*/
function verifySetupIntent(accountID: number) {
API.write(WRITE_COMMANDS.VERIFY_SETUP_INTENT, {accountID});
function verifySetupIntent(accountID: number, isVerifying = true) {
API.write(WRITE_COMMANDS.VERIFY_SETUP_INTENT, {accountID, isVerifying});
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function CardAuthenticationModal({headerTitle}: CardAuthenticationModalProps) {
return;
}

PaymentMethods.verifySetupIntent(session?.accountID ?? -1);
PaymentMethods.verifySetupIntent(session?.accountID ?? -1, true);
},
false,
);
Expand Down

0 comments on commit 7e67295

Please sign in to comment.