Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!