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/13bcevqzun65/plugin/33/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AZPfZN1c9N42en092A2aRShSTuMQZGZ9Q0hELBE5osVA1SLw58iYn_2q0So8Ff3MksdCqRAlcJPznVWe");
script.setAttribute("data-currency", "TRY");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiODA0NDdiZTg3NWNhYWQ1NjEzNWYxYmRlZThmNDVjY2JlMzAxZWRmY2Y2MTc1ZTllNDk4NDM2MDhmYWYwNGM3NHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMTFUMDQ6NDI6MDguNDYzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1rR1pya24zTThTdTlFTXNWQy1zRnB0VkE2V0R3c2hWd2RPYWEwamJDSlJMS21mVWJCZk0ySExvU05XeDctS2ZtZ1dfUWdacmRIb0NmMHZmTkFKVW15ejMzb0RRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AZPfZN1c9N42en092A2aRShSTuMQZGZ9Q0hELBE5osVA1SLw58iYn_2q0So8Ff3MksdCqRAlcJPznVWe");
script.setAttribute("data-currency", "TRY");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiODA0NDdiZTg3NWNhYWQ1NjEzNWYxYmRlZThmNDVjY2JlMzAxZWRmY2Y2MTc1ZTllNDk4NDM2MDhmYWYwNGM3NHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMTFUMDQ6NDI6MDguNDYzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1rR1pya24zTThTdTlFTXNWQy1zRnB0VkE2V0R3c2hWd2RPYWEwamJDSlJMS21mVWJCZk0ySExvU05XeDctS2ZtZ1dfUWdacmRIb0NmMHZmTkFKVW15ejMzb0RRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('663ef8196d9fd', 'card', 'buynow', 'rect', 'black');
});
} else {
renderPayPalButtons('663ef8196d9fd', 'card', 'buynow', 'rect', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('663ef8196d9fd', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('663ef8196d9fd', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('663ef8196d9fd', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('663ef8196d9fd', 'paypal', 'buynow', 'rect', 'gold');
}