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

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

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 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!