Jump to content

Prestashop Payment button don't do anything [Solved]


Recommended Posts

When I try to finish my order, (with the check of agree marked), the Pay button, don't work, I try with PayPal and with bank transfer and still nothing. The only way that I can pay is with stripe plugin. I have a new Prestashop 1.7.2 installation, with SSL and the default theme.

 

I don't see any errors in javascript console. 

Edited by raistlin54 (see edit history)
Link to comment
Share on other sites

Looking in the code, I see that the hidden-form for paypal is created, something similar than this:

 

 <div
          id="pay-with-payment-option-5-form"
          class="js-payment-option-form  ps-hidden "
        >
                      <form id="payment-form" method="POST" action="https://piezasycomponentes.com/es/module/paypal/ecInit?credit_card=0">
                            <button style="display:none" id="pay-with-payment-option-5" type="submit"></button>
            </form>
                  </div>
            </div>

And the code for de button is:

<div id="payment-confirmation">
    <div class="ps-shown-by-js">
      <button type="submit"  disabled  class="btn btn-primary center-block">
        Pedido con obligación de pago
      </button>
              <article class="alert alert-danger mt-2 js-alert-payment-conditions" role="alert" data-alert="danger">
          Por favor, asegúrese de haber escogido un <a href="#checkout-payment-step">método de pago</a> y de haber aceptado los <a href="#conditions-to-approve">términos y condiciones</a>.
        </article>
          </div>
    <div class="ps-hidden-by-js">
          </div>
  </div>
Link to comment
Share on other sites

Well, I don't know why, but I found what is breaking the payment process. 

I had activated:

PayPal v4.2.0 - by PrestaShop

- Módulo de pago Stripe v1.5.0 - by 202 ecommerce

- Pagos por transferencia bancaria v2.0.4 - by PrestaShop

In Stripe, I had active:

-Activar SOFORT (si tienes clientes alemanes, austríacos o suizos)

- Activar Giropay (si tienes clientes alemanes, austríacos o suizos)

When I switch off SOFORT and Giropay, the payment button start to work. I think that these 2 options, need some kind of data or some remote js, that never can load, and this is breaking the normal script load process.

Link to comment
Share on other sites

17 hours ago, itnomic said:

Hello, 

I have the same problem on 3 other shops and I already called the support and hope they will fix it as soon as possible.

 

Great, by the moment I don't need SOFORT and Giropay and I can wait, but If you cannot It's a real problem :( 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...