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

314
Visualizações
How to enable paypal payment in brainstree running in electron?

I am running braintree payment system in nodejs, and this express app is being run via electron for desktop.

Paying by standard credit card works fine, but when the paypal button is clicked it just stall. See image below. enter image description here

and when you click on cancel PayPal Login nothing happens.

Below is the html form of the braintree payment

<script src="https://js.braintreegateway.com/js/braintree-2.30.0.min.js"></script>
<script>
// We generated a client token for you so you can test out this code
// immediately. In a production-ready integration, you will need to
// generate a client token on your server (see section below).
var clientToken = document.getElementById('token').value;

braintree.setup(clientToken, "dropin", {
  container: "payment-form"
});
</script>

    <a href="https://www.braintreegateway.com/merchants/ID/verified" target="_blank">
  <img src="https://s3.amazonaws.com/braintree-badges/braintree-badge-wide-dark.png" width="280px" height="44px" border="0"/>
  </a>

When tried on a regular express app run in the web browser it works (a popup appear to pay using paypal). My assumption is that electron disables popup, but then again this does not explain as to why the "Cancel PayPal Login" button is non responsive.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.

Braintree does not test against compile-to-native frameworks like Electron, which means there's no guarantee Braintree's libraries will run when used alongside them.

You could integrate PayPal using PayPal's API, however keep their security guidelines in mind when developing your integration.

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