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/12z3frtncgcc/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Adtn6XM7WymSdzNDzvYGpwU2jDiIeL1Y-aF_kb88weyJ0omyl8coFI-8L4ZT4z0fbocCdOCv4uCJFt4J");
script.setAttribute("data-currency", "THB");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjliOTgxMTY3YTQxNTQ1ZGNmYmNlNDUyYWU5NDI5MGE4YTlkODMzY2MzNDYzNjE2MGYzNTlhMWRhZmFjMGJiMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjNUMTY6NTc6NTguNDQ5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1uMFJMRWpNZHNlRW80UHFHOTBIM1lSWnQwclo2NU1VZ0ppUVNRVG9tcG1JbVRuY0pqZ1NteDdzOEo1T1ZFVG5iS0RYRjBFb1F4UVpXNkttYy12TS1fUEYtSGx3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6627e8969f73d', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6627e8969f73d', 'paypal', 'buynow', 'rect', 'gold');
});
}