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/8gpm1tc4al8c/plugin/20/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AXj48AoauWiV2deOL3pVxkvwGguQ805BqLHwtvZPnpcyd0tc-RTPIRMl8EM3wyq8htBGH7PjgE3AMnga");
script.setAttribute("data-currency", "TRY");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzNkMThmOTc2YTY0ODllOTk3YWE5YTc2YTliOGYzOGZkNDc1YjYxMjc1ZjJiMWVhNzQ5Y2E4ZmRlNjlmZTE4N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMzBUMjM6NTY6MjQuNTU5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA4RFF6bHNnSDJVRWktT1I3WjdSX1B1VWFaZENCMTQ3dEZzN2Z0bDJ2elZ5MkxlVVZma2xXbzVKdGdSY1o5VExTb0lXZnBkZ2tpQ2RPUnRLLVlGUkRQc2g5N0pnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66318528310bc', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66318528310bc', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66318528310bc', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66318528310bc', 'paypal', 'buynow', 'rect', 'gold');
});
}