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

145
Visualizações
Ignore undefined variable beloning to third party package

I'm trying to integrate bluesnap payment gateway into a react/ts project. I've included their hosted javascript into my public/index.html and have proceeded with the integration within a component, but on compiling I'm getting the error of

'bluesnap' is not defined no-undef

I've tried to supress the error with ts-ignore

// @ts-ignore
    bluesnap.hostedPaymentFieldsSubmitData((callback: any) => {

However it's still not liking that I'm calling bluesnap without defining it. The bluesnap is defined though within the public/index.html head

    <script type="text/javascript" src="https://sandbox.bluesnap.com/web-sdk/4/bluesnap.js"></script>

Any ideas?

Thanks

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Solved by appending window. ie: window.bluesnap.somefuction

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