Refused to display ‘https://portal.myfatoorah.com/’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
<script src="https://sa.myfatoorah.com/cardview/v2/session.js"></script>
<script>
var config = {
countryCode: "<?php echo $response['Data']['CountryCode'] ?>",
sessionId: "<?php echo $response['Data']['SessionId'] ?>",
cardViewId: "card-element",
supportedNetworks: "v,m,md,ae",
onCardBinChanged: handleBinChanges,
// The following style is optional.
style: {
hideCardIcons: false,
direction: "ltr",
cardHeight: 130,
tokenHeight: 130,
input: {
color: "black",
fontSize: "13px",
fontFamily: "sans-serif",
inputHeight: "32px",
inputMargin: "1px",
borderColor: "c7c7c7",
borderWidth: "1px",
borderRadius: "8px",
boxShadow: "",
placeHolder: {
holderName: "Name On Card",
cardNumber: "Number",
expiryDate: "MM / YY",
securityCode: "CVV",
}
},
text: {
saveCard: "Save card info for future payment.",
addCard: "Use another Card!",
deleteAlert: {
title: "Delete",
message: "Test",
confirm: "yes",
cancel: "no"
}
},
label: {
display: false,
color: "black",
fontSize: "13px",
fontWeight: "normal",
fontFamily: "sans-serif",
text: {
holderName: "Card Holder Name",
cardNumber: "Card Number",
expiryDate: "Expiry Date",
securityCode: "Security Code",
},
},
error: {
borderColor: "red",
borderRadius: "8px",
boxShadow: "0px",
},
},
};
myFatoorah.init(config);
</script>
If you would like your customer to complete the payment on your checkout page without being redirected to another page (except for the 3D Secure page) and the PCI DSS compliance is a blocker, MyFatoorah embedded payment
New contributor
Ratheesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.