Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

279
Vistas
Paypal pay button not shown

Sometimes the paypal pay button is not shown to our customers. So far just DE customers. I am using Javascript SDK. It looks like because the button.isEligible() function is not true and executed. What can I do to show the button or show a payment alternative?

Currently the customer can decide with radio buttons which payment method he wants. Then he is directed to: Paypal, SEPA or credit card.

<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');
            }
        });

As I am showing just one button I probably have to use "button.isEligible()", correct? As this is working for most customers can it be it depends on the customer?

Can I add an else statement like:

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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda