Jump to content

Cannot pay with Paypal with mobile devices/cell phones


NetVicious

Recommended Posts

Hi!

I have a strange problem with Paypal link on the one page checkout of my Prestashop.

Prestashop it's 1.6.1.18 and the Paypal module it's v3.11.6

From a computer the link for paying with Paypal works perfectly and it has text:

image.png.deda423222a4e2d2ee809ac8ac236255.png

 

Buy from a Mobile device/cell phone I got a different icon and a empty text. I cannot click on that option so there it's no way to pay with paypal on cell phones.

 

image.png.3db94976c0f08ccd29fe67c10544dfaf.png

 

Any tip to fix this problem?

Regards,

Link to comment
Share on other sites

It was a problem related to my custom CSS, trying to make all the images for the payment systems with the same appearance.

The paypal module when it's a cell phone which it's browsing shows only a big button for paying with paypal.

I fixed the problem disablind this special behauvior editing the file: /modules/paypal/paypal.php

On the function hookPayment

I added the $use_mobile = false to not use the mobile version of the Paypal Checkout.

 

public function hookPayment($params)
    {
        if (!$this->canBeUsed()) {
            return;
        }

        $use_mobile = $this->useMobile();
        $use_mobile = false;

.....

 

 

Edited by NetVicious (see edit history)
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...