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/6sqyjas90wqo/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AclHc5nva419haVJDXXshZl39HGNEBfCb6jYwIVkrMPf1DyBdaAoUaFQN1Ew8jNKxme-k6YzzSqJbIET");
script.setAttribute("data-currency", "HKD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzdjNTgzNTdjNjcyNDdiYzM5YzAxYTE2ODgzZDNiMTI5MDgzYzMwMzIxM2M5Yzk0MTU4ZjE2YjQ5YTZkMWI1ZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDItMjBUMTg6MjM6MTAuNTE3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5aWVRTeG5DR3lmWjJmcGpvaXRTNGhSZ1k2TFpodUx1MHhKWUJCSGt6Y2FVOXZFendUOG9mejlvcEM4R01SR29qWEd1Q2ppY1JrcjhpNWZFamNRVXY5TlVwa3dBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AclHc5nva419haVJDXXshZl39HGNEBfCb6jYwIVkrMPf1DyBdaAoUaFQN1Ew8jNKxme-k6YzzSqJbIET");
script.setAttribute("data-currency", "HKD");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNzdjNTgzNTdjNjcyNDdiYzM5YzAxYTE2ODgzZDNiMTI5MDgzYzMwMzIxM2M5Yzk0MTU4ZjE2YjQ5YTZkMWI1ZnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDItMjBUMTg6MjM6MTAuNTE3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5aWVRTeG5DR3lmWjJmcGpvaXRTNGhSZ1k2TFpodUx1MHhKWUJCSGt6Y2FVOXZFendUOG9mejlvcEM4R01SR29qWEd1Q2ppY1JrcjhpNWZFamNRVXY5TlVwa3dBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65d4f13c7c743', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('65d4f13c7c743', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('65d4f13c7c743', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('65d4f13c7c743', 'paypal', 'buynow', 'rect', 'gold');
}