if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/tzqfemjm9h1k/plugin/35/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AVln9u5zcrJN11M6K4QQr1Yw6Cc1JDOKtQPdvnwbwlqmH0LZ4_GJAcSCjXZP5khizpCXb6FWpaKXzNXQ");
script.setAttribute("data-currency", "CAD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjIzZTRhNGM4MjUwZjAyYzRmNzU3NGI5MTk1YWM1NDM0NTRjMmNjYmJiY2M0ODQ0MGY5MmU2OGNjMTU3ZWEwOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMTdUMDk6MTY6MjEuMDc3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5BUGxyVXJndHdPaE9pTk5xaXZ0aFdxMVlvRjF2c3hVZG8zM1VmU3VIM3A2NlFRT3ZvU050NHp4djRnV3FWeGJ2Wk1tZGc5N25sM1lGVGthUWFxU1Y4ajNQVVZ3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6647206485b37', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6647206485b37', 'paypal', 'buynow', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6647206485b37', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6647206485b37', 'paylater', 'paypal', 'rect', 'gold');
});
}