Skip to content

Commit

Permalink
add support for hideCardNicknameField for open payment lins
Browse files Browse the repository at this point in the history
  • Loading branch information
Chikke Srujan authored and Chikke Srujan committed Nov 28, 2024
1 parent 707f48c commit 1c6de32
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function initializeSDK() {
paymentDetails.sdk_layout === "accordion"
? "accordion"
: paymentDetails.sdk_layout;

var hideCardNicknameField = paymentDetails.hide_card_nickname_field;
var unifiedCheckoutOptions = {
displaySavedPaymentMethodsCheckbox: false,
displaySavedPaymentMethods: false,
Expand All @@ -56,7 +56,7 @@ function initializeSDK() {
height: 55,
},
},
hideCardNicknameField: false,
hideCardNicknameField: hideCardNicknameField,
};
// @ts-ignore
unifiedCheckout = widgets.create("payment", unifiedCheckoutOptions);
Expand All @@ -82,5 +82,10 @@ function redirectToStatus() {
arr.splice(0, 2);
arr.unshift("status");
arr.unshift("payment_link");
window.location.href = window.location.origin + "/" + arr.join("/") + "?locale=" + paymentDetails.locale;
window.location.href =
window.location.origin +
"/" +
arr.join("/") +
"?locale=" +
paymentDetails.locale;
}

0 comments on commit 1c6de32

Please sign in to comment.