if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn02.plentymarkets.com/1sdc67sf6871/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AWUlkc9qQfEPvBQjZEh264GjLCszAAz8UY3ZoAj0i0SeyvtuFXR6tPJTTN1CQ64DnKtefixDsQifBmgA");
script.setAttribute("data-currency", "TRY");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzBkMjI0MmZiZjNmYjFjZTNhNmM2OTAwZmUwYmE1ZmE4NjM3OTU3YmM3YzQxYzIwY2I3ZjNiMjYwMjI4Mjc2MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDJUMTY6NDA6MzYuOTE3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5nc296eWpyaUVaTjdNcWNWU0hFN0JFZUJDMXp4U2ZQLUZ5aGJ4UUwwdEpvSDNzQUlUNTZveEJaOXZiV3hsMzVTbU1DOHVjZVBFSWJoYUdnUDRjczd4YjBJc0xnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AWUlkc9qQfEPvBQjZEh264GjLCszAAz8UY3ZoAj0i0SeyvtuFXR6tPJTTN1CQ64DnKtefixDsQifBmgA");
script.setAttribute("data-currency", "TRY");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzBkMjI0MmZiZjNmYjFjZTNhNmM2OTAwZmUwYmE1ZmE4NjM3OTU3YmM3YzQxYzIwY2I3ZjNiMjYwMjI4Mjc2MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMDJUMTY6NDA6MzYuOTE3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5nc296eWpyaUVaTjdNcWNWU0hFN0JFZUJDMXp4U2ZQLUZ5aGJ4UUwwdEpvSDNzQUlUNTZveEJaOXZiV3hsMzVTbU1DOHVjZVBFSWJoYUdnUDRjczd4YjBJc0xnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "en_GB");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6633cb9d20493', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('6633cb9d20493', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6633cb9d20493', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('6633cb9d20493', 'paypal', 'buynow', 'rect', 'gold');
}