Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

240
Vistas
I am unable to add the <script> tag to the HTML page

I am integrating Postpay payment system with my web application by adding JS code to the HTML page, but nothing works.

Here is the code I need to integrate:

<script>
        window.postpayAsyncInit = function() {
          postpay.init({
            merchantId: '{merchantId}',
            sandbox: true,
            theme: 'light',
            locale: 'en'
          });
        };
</script>
    
<script async src="https://cdn.postpay.io/v1/js/postpay.js"></script>

I used this tutorial.

I'm a backender and don't know JS, nothing works for me. How can I get this to work?

This is the console output, there are 2 exceptions:

enter image description here

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If the first script relies on the script from the cdn link, the latter should be placed first in order like below:

<script async src="https://cdn.postpay.io/v1/js/postpay.js"></script>
<script>
        window.postpayAsyncInit = function() {
          postpay.init({
            merchantId: '{merchantId}',
            sandbox: false,
            theme: 'light',
            locale: 'en'
          });
        };
</script>
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda