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/tgihtlx3guvt/plugin/354/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AV5baBwl-b5So0jyIye9fvkh7nLT52kcw95QHqVXj4brOwXrNHWH7N0WfC_F1D2jNE3xrpRUqE0nlF55");
script.setAttribute("data-currency", "VND");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzYyMTgzN2EyOTNlZjcxOGMxNGFmNzVjZTM1MGRlZTQ2ZmQ0OWI1MjcwYmI5OWZiOWZjODQ5NjM2NDZmY2FlOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMThUMDY6MzU6MjAuNTE3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU4ycFBlaXRnRy1ZYUhSNUhtVkp5V190SkdFV2ZjN0tCT2NsMlROSlVidjNaMDF6eWxEZ0tUTnFPQ0FpUWVvMXU5TEJnX0NJZHhZZTB4SEFGUWE5M3pjc3V5UVFBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AV5baBwl-b5So0jyIye9fvkh7nLT52kcw95QHqVXj4brOwXrNHWH7N0WfC_F1D2jNE3xrpRUqE0nlF55");
script.setAttribute("data-currency", "VND");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMzYyMTgzN2EyOTNlZjcxOGMxNGFmNzVjZTM1MGRlZTQ2ZmQ0OWI1MjcwYmI5OWZiOWZjODQ5NjM2NDZmY2FlOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMThUMDY6MzU6MjAuNTE3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU4ycFBlaXRnRy1ZYUhSNUhtVkp5V190SkdFV2ZjN0tCT2NsMlROSlVidjNaMDF6eWxEZ0tUTnFPQ0FpUWVvMXU5TEJnX0NJZHhZZTB4SEFGUWE5M3pjc3V5UVFBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66484cb5eb1c0', 'paypal', 'checkout', 'rect', 'gold');
});
} else {
renderPayPalButtons('66484cb5eb1c0', 'paypal', 'checkout', 'rect', 'gold');
}