V40

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/2p5cw815osvx/plugin/1/paypal/js/smartPaymentScript.min.js"; script.setAttribute("data-client-id", "AYuIJ_VA7_KXRtgyaLt7gGdbQSkf19kV7pwZRlx3EZbxR20jytISMFsXXrt4swT3_onLlNZ1OgPr4316"); script.setAttribute("data-currency", "EUR"); script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOWY3ZDdiYTdiYzMyZjFiMTQwMDhmMWExYzUzNTliOWE4YTFkN2U3YTdiNGNhN2NmOGNmY2JkMmIyY2JjOGJhYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMjBUMTc6NTU6MzYuNDg2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9VSC1HSGd5azRQeWZrY3JYMWFheUtwcXFMRWlGTnBiQjFzNkRpelJ5TUhpcjZwNXdxSk8xMjlzYzR6U2ZxRlFVTUptRTZvUGJYZy1Cczd4SkxZR3Z3bXo1T2J3In19"); 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", "AYuIJ_VA7_KXRtgyaLt7gGdbQSkf19kV7pwZRlx3EZbxR20jytISMFsXXrt4swT3_onLlNZ1OgPr4316"); script.setAttribute("data-currency", "EUR"); script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOWY3ZDdiYTdiYzMyZjFiMTQwMDhmMWExYzUzNTliOWE4YTFkN2U3YTdiNGNhN2NmOGNmY2JkMmIyY2JjOGJhYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMjBUMTc6NTU6MzYuNDg2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9VSC1HSGd5azRQeWZrY3JYMWFheUtwcXFMRWlGTnBiQjFzNkRpelJ5TUhpcjZwNXdxSk8xMjlzYzR6U2ZxRlFVTUptRTZvUGJYZy1Cczd4SkxZR3Z3bXo1T2J3In19"); script.setAttribute("data-append-trailing-slash", ""); script.setAttribute("data-locale", "de_DE"); }
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/2p5cw815osvx/plugin/1/paypal/js/smartPaymentScript.min.js"; script.setAttribute("data-client-id", "AYuIJ_VA7_KXRtgyaLt7gGdbQSkf19kV7pwZRlx3EZbxR20jytISMFsXXrt4swT3_onLlNZ1OgPr4316"); script.setAttribute("data-currency", "EUR"); script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOWY3ZDdiYTdiYzMyZjFiMTQwMDhmMWExYzUzNTliOWE4YTFkN2U3YTdiNGNhN2NmOGNmY2JkMmIyY2JjOGJhYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMjBUMTc6NTU6MzYuNDg2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9VSC1HSGd5azRQeWZrY3JYMWFheUtwcXFMRWlGTnBiQjFzNkRpelJ5TUhpcjZwNXdxSk8xMjlzYzR6U2ZxRlFVTUptRTZvUGJYZy1Cczd4SkxZR3Z3bXo1T2J3In19"); 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", "AYuIJ_VA7_KXRtgyaLt7gGdbQSkf19kV7pwZRlx3EZbxR20jytISMFsXXrt4swT3_onLlNZ1OgPr4316"); script.setAttribute("data-currency", "EUR"); script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOWY3ZDdiYTdiYzMyZjFiMTQwMDhmMWExYzUzNTliOWE4YTFkN2U3YTdiNGNhN2NmOGNmY2JkMmIyY2JjOGJhYXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMjBUMTc6NTU6MzYuNDg2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9VSC1HSGd5azRQeWZrY3JYMWFheUtwcXFMRWlGTnBiQjFzNkRpelJ5TUhpcjZwNXdxSk8xMjlzYzR6U2ZxRlFVTUptRTZvUGJYZy1Cczd4SkxZR3Z3bXo1T2J3In19"); script.setAttribute("data-append-trailing-slash", ""); script.setAttribute("data-locale", "de_DE"); }