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

285
Views
No se muestra el botón de pago de Paypal

A veces, el botón de pago de paypal no se muestra a nuestros clientes. Hasta ahora solo clientes de DE. Estoy usando Javascript SDK. Parece que la función button.isEligible() no es verdadera y no se ejecuta. ¿Qué puedo hacer para mostrar el botón o mostrar una alternativa de pago?

Actualmente el cliente puede decidir con botones de radio qué método de pago quiere. Luego se le dirige a: Paypal, SEPA o tarjeta de crédito.

 <script> // Loop over each funding source/payment method var FUNDING_SOURCES = [ paypal.FUNDING.<?php echo strtoupper($paymentmethod); ?> ]; FUNDING_SOURCES.forEach(function(fundingSource) { // Initialize the buttons var button = paypal.Buttons({ fundingSource: fundingSource, createOrder: function (data, actions) { ... onApprove: function (data, actions) { return actions.order.capture().then(function (orderData) { ... // Check if the button is eligible if (button.isEligible()) { // Render the standalone button for that funding source button.render('#paypal-button-container'); } });

Como estoy mostrando solo un botón, probablemente tenga que usar "button.isEligible()", ¿correcto? Como esto funciona para la mayoría de los clientes, ¿puede ser que dependa del cliente?

¿Puedo agregar una declaración else como:

 if (button.isEligible()) { button.render('#paypal-button-container'); } else { "please try again later or use a different payment method" }
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!