Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda