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

204
Views
I would like to use a <script> in my Angular component, how do I do that?

I need a MercadoPago payment checkout in Angular 11.

I am having trouble implementing the in my child component.

Here is the documentation: https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/integration#editor_5

When applying the documentation to my code, the payment button does not render.

<script>
    const mp = new MercadoPago('PUBLIC_KEY', {
        locale: 'es-AR'
    });
    mp.checkout({
        preference: { id: 'YOUR_PREFERENCE_ID' },
        render: {
            container: '.cho-container',
            label: 'Pay',
        }
    });
</script>

This error appears on my console:

Error in console

about 4 years ago · Juan Pablo Isaza
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!