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/mpi8oh3z3hsh/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AaTp_l10kGhDBcTjcUNzc6u7GXh3h3lH76w8bnSc0Zo_eBjxYsY35K3bxomll3oIV_Pv4njO-QsV3xQp");
script.setAttribute("data-currency", "CAD");
script.setAttribute("data-client-token", "");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('654bddd1b9b10', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('654bddd1b9b10', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('654bddd1b9b10', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('654bddd1b9b10', 'paypal', 'buynow', 'rect', 'gold');
});
}