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/thw61dp2dvyx/plugin/5/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AXUgk2KDoduIM1s3KewcqIjiHXdg3HVUhrosGfQHsdtKHT9bx_WoPjVfhyPFDiitUUz-LCfG1bZpwuYT");
script.setAttribute("data-currency", "USD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZGRjN2Y0ZThhZDg4NjAxYjQzMWU4Y2MxNTIxNDA5YTg4ODJkMDg4NjliYmYzMjk5MGVmZmQzNTkzOTliZjZjYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTEtMjdUMTU6Mzk6MzcuNzc5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVAzQTlIZm9CbllpWmQyeHBDNkE3MHBnVGR5ZjVqV0luQnExdWtjT1RsTVM0VDVDNlRTX0Y0NXBSMm9RRnhQc3BRLXdoeUFZTG1zS0lJaVhfbFpnQ0FGN3Zjcl93In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "en_GB");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6747468e8d24f', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6747468e8d24f', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6747468e8d24f', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6747468e8d24f', 'paypal', 'buynow', 'rect', 'gold');
});
}