Giter Site home page Giter Site logo

202ecommerce / paypal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prestashopcorp/paypal

20.0 7.0 30.0 14.28 MB

This repository is for developpers only. To install and upgrade the module in a production shop please install the package via PrestaShop Marketplace by following this link:

Home Page: https://addons.prestashop.com/fr/paiement-carte-wallet/1748-paypal-officiel.html

License: Academic Free License v3.0

PHP 83.10% JavaScript 4.45% Smarty 9.64% SCSS 1.67% Dockerfile 0.01% Shell 0.16% CSS 0.98%

paypal's Introduction

PayPal Official Module for PrestaShop

Coding Standart

About

Let customer pay with one of the payment methods :

On PrestaShop 1.7 :

  • PayPal Express Checkout
  • PayPal Express Checkout Cards
  • PayPal Plus Germany, Mexico and Brazil

On PrestaShop 1.6 :

  • PayPal Express Checkout
  • Braintree cards
  • PayPal Plus Germany

Product page on PrestaShop Addons:

https://addons.prestashop.com/en/payment-card-wallet/1748-paypal-official.html

Support on PrestaShop Addons:

https://addons.prestashop.com/en/contact-us?id_product=1748

Module version guide

PrestaShop version Module version Repo Doc PHP Version
1.5.x - 1.6.x 3.x release/3.14.0 5.3 or greater
1.7.x 5.x master User Guide 5.4 or greater

Requirements

  1. PHP version (check Module version guide)
  2. TLS 1.2 & cURL 1.0.1c

The Payment Card Industry (PCI) Council has mandated that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, PayPal has upgraded its services to require TLS 1.2 for all HTTPS connections. Connections to the sandbox environment use only TLS 1.2.

For more official, relevant information, see the 2017-2018 Merchant Security Roadmap Microsite:

Check the version of your URL’s underlying security library. If you use OpenSSL libraries, please update them to at least version 1.0.1c.

Installation

To install module on PrestaShop, download zip package form product page on PrestaShop Addons.

This module contain composer.json file. If you clone or download the module from github repository, run the composer install from the root module folder.

See the composer documentation to learn more about the composer.json file.

Compiling assets

For development

We use Webpack to compile our javascript and scss files. In order to compile those files, you must :

  1. have Node 10+ installed locally
  2. run npm install in the root folder to install dependencies
  3. then run npm run watch to compile assets and watch for file changes

For production

Run npm run build to compile for production. Files are minified, console.log and comments dropped.

Contributing

PrestaShop modules are open-source extensions to the PrestaShop e-commerce solution. Everyone is welcome and even encouraged to contribute with their own improvements.

Requirements

Contributors must follow the following rules:

  • Make your Pull Request on the "develop" branch, NOT the "master" branch.
  • Do not update the module's version number.
  • Follow the coding standards.

Process in details

Contributors wishing to edit a module's files should follow the following process:

  1. Create your GitHub account, if you do not have one already.
  2. Fork the paypal project to your GitHub account.
  3. Clone your fork to your local machine in the /modules directory of your PrestaShop installation.
  4. Create a branch in your local clone of the module for your changes.
  5. Change the files in your branch. Be sure to follow the coding standards!
  6. Push your changed branch to your fork in your GitHub account.
  7. Create a pull request for your changes on the 'develop' branch of the module's project. Be sure to follow the commit message norm in your pull request. If you need help to make a pull request, read the Github help page about creating pull requests.
  8. Wait for one of the core developers either to include your change in the codebase, or to comment on possible improvements you should make to your code.

That's it: you have contributed to this open-source project! Congratulations!

Command line launched by github actions

Please launch these command line before submitting a Pull Request.

phpcs fixer

~$ vendor/bin/php-cs-fixer --fix

phpstan

You need a docker container to launch phpstan:

# create the prestashop container
~$ docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop

# launch phpstan
~$ docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/paypal -e _PS_ROOT_DIR_=/var/www/html --workdir=/var/www/html/modules/paypal phpstan/phpstan:0.12 analyse --configuration=/var/www/html/modules/paypal/202/phpstan/phpstan.neon

phpunit

You need a docker container to launch phpunit

docker run -tid --rm -v $PWD:/var/www/html/modules/paypal --name temp-paypal-unittest-ps 202ecommerce/prestashop:1.7.8.7
docker exec -t temp-paypal-unittest-ps sh /var/www/html/modules/paypal/202/docker/run_for_unittest.sh

paypal's People

Contributors

202-ecommerce avatar alexsimple avatar bogdan202 avatar clotairer avatar denys202 avatar dependabot[bot] avatar doekia avatar elisabeth202 avatar florian-202 avatar florianthomi avatar gaillafr avatar groussac avatar ibndawood avatar iuliia200 avatar jhoarau avatar joseantgv avatar kgleizes avatar lmeyer1 avatar m-hume avatar nprokopenko202 avatar prestaedit avatar psalkowski avatar quetzacoalt91 avatar sgodard202 avatar tbigueres avatar tchauviere avatar thoma202 avatar tlhuillier avatar tvorgul avatar webdiscus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

paypal's Issues

Shop not working on debug mode when paypal activated

I installed and activated the paypal module.
When I'm in debug mode, I get this error:
Capture d’écran 2019-09-18 à 11 15 37

If I disable the debug mode, I don't have this error.

I absolutely need to stay in debug mode before production, what should I do?

Why forcing PayPal Plus in Germany?

After reviewing parts of the code, I saw that PayPal Plus is forced if the shop is located in Germany. Is there a special reason to do that? If "EC" is used, which is the default value, it should work without PayPal Plus or am I missing something here? Of course without for example SEPA direct debit, but with PayPal and credit card? Because sometimes sellers don't have PayPal Plus.

And if it would work in "EC" mode without PayPal Plus, is anybody working on a setting to switch between those modes right now?

Sources:

Send tracking numbers to PayPal

Hello. Can the module automatically send tracking numbers of the packages back to PayPal? If not would you consider adding such feature?

It's useful when the customer demands PayPal to return the money claiming they didn't receive anything - it can serve as a proof that the eshop did in fact send it.

MySQL 8 compatibility

Hello,

Today, working for a customer, I've found out that a clean new installation of this prestashop + the Paypal Module isn't currently working if the database version is MySQL 8. It works on MySQL 5.7 and such, tho.

Here's a docker-compose so you can test it easily by yourselves.

I've managed to check all the tables and configurations that the module makes and translate them into the MySQL 8 database, and now it's working. Manually, when the system was working before (on MySQL 5.7, it was an upgrade). It gets really painful. Compatibility would be appreciated, or (at least) a simple notice so that people don't upgrade MySQL would be helpful.

version: "3.7"

services:

  prestashop:
    image: prestashop/prestashop:1.7-7.1-apache
    ports:
      - "8080:80"
    environment:
      - DB_SERVER=ps-db-57 # Change to ps-db-57 or ps-db-8
      - DB_USER=prestashop
      - DB_PASSWD=prestashop
      - DB_NAME=prestashop
      - DB_PREFIX=ps_
      - [email protected]
      - ADMIN_PASSWD=example
      - PS_LANGUAGE=en
      - PS_COUNTRY=EN
      - PS_INSTALL_AUTO=1
      - PS_ERASE_DB=1 # Erases DB upon container creation. For testing purposes.
      - PS_HANDLE_DYNAMIC_DOMAIN=1
    networks: 
      - prestashop
    restart: always

  ps-db-8:
    image: mysql:8
    command: --default-authentication-plugin=mysql_native_password
    volumes:
      - ./data/mysql-8:/var/lib/mysql
    ports:
      - "3306"
    environment:
      MYSQL_ROOT_PASSWORD: test
      MYSQL_USER: prestashop
      MYSQL_PASSWORD: prestashop
      MYSQL_DATABASE: prestashop
    networks: 
      - prestashop
    restart: always

  ps-db-57:
    image: mysql:5.7
    volumes:
      - ./data/mysql-57:/var/lib/mysql
    ports:
      - "3306"
    environment:
      MYSQL_ROOT_PASSWORD: test
      MYSQL_USER: prestashop
      MYSQL_PASSWORD: prestashop
      MYSQL_DATABASE: prestashop
    networks: 
      - prestashop
    restart: always

networks: 
  prestashop:

Wrong cart loaded in context if order already exists

Hey there, I did some debugging in the paypal module in the past days and I noticed that in this line a new cart is initialized using an order id.

AFAIK this happens when Paypal IPN are delivered at a slower rate (we had 1 hour delays last week):
the user returns to the site before the IPN delivery, a temporary order is created and, when the IPN arrives, the payment is processed.

Problem is that failing to initialize the cart, lead to a completely wrong context (with wrong customer, lang, etc), and in this case the instantiated cart seems to be the wrong one.

To me, this portion of code should be replaced with:

$id_order = (int) Order::getOrderByCartId((int) $custom['id_cart']);
Context::getContext()->cart = new Cart((int) $custom['id_cart']);

Am I missing something?

5.3.1 doesn't checkout with paypal

I updated from the broken 5.3.0 to 5.3.1 but another issue came up.
The checkout page where to select Paypal and accept the terms will load again and again telling the user "to select a payment option or accept the terms". No checkout to paypal.

Same with the express-checkout buttons, click it and nothing happens.
Please help, thx!

PrestaShop-Version 1.7.7.0
PHP-Version 7.3.21

Module Customized prices issue in 5.1.4

Hi

Many modules in Prestashop override the method Product::priceCalculation to return a custom price for a product during the order process. Until now this has not caused issues with this PayPal module. However, recently it seems the PayPay module has stopped taking the price from this method and therefore the incorrect price gets passed to PayPal.

It works as expected with other payment modules.

This is quite a major issue for many modules.

Looking into the issue I can see in /classes/MethodEC.php the price for the product is fetched as follows:

$priceIncl = $this->formatPrice($productObj->getPrice(true, $product['id_product_attribute'], 6, null, false, true, $product['quantity']));

The problem is the customization ID is not being passed from the cart_product entry which is central to allowing modules to calculate a custom price for products in the cart.

It seems the issue could be easily resolved by calling Product::getPriceStatic directly which accepts the customization ID.

Kind Regards
Musaffar

payment-options won't load when chosing other currencies

In these cases, the payment methods won't just show up (normally below the "benefits of paypal" information)

image

javascript console shows:

bottom-10b833154.js:2020 Uncaught ReferenceError: modePPP is not defined
    at HTMLDocument.<anonymous> (bottom-10b833154.js:2020)
    at u (bottom-10b833154.js:39)
    at Object.fireWith [as resolveWith] (bottom-10b833154.js:39)
    at Function.ready (bottom-10b833154.js:39)
    at HTMLDocument.H (bottom-10b833154.js:39)

checked setings, deleted cache.

no settings were changed, neither in shop backend nor in paypal.

PayPal 5.0.0 upgrade seems broken

Hello,

we have a PrestaShop 1.7.6.1 installation and upgraded the PayPal module from 4.5.0 to 5.0.0 .

Afterwards the PayPal Settings in the backend were inaccessible with the following error message

The controller AdminPayPalSetup is missing or invalid

Why there are some embedded const in version >= 5.2?

class PayPal extends \PaymentModule
{
    const PAYPAL_PARTNER_CLIENT_ID_LIVE = 'ATgR8ZE5M_Jd7F_XMMQDqMfFFgr7hJHFw8yKfklWU4TwzReENgydr5I042YfS1nRTDey7C1NbuFfKo_o';

    const PAYPAL_PARTNER_ID_LIVE = 'B3PVCXSW2J8JN';

    const PAYPAL_PARTNER_CLIENT_ID_SANDBOX = 'AVJ8YvTxw5Clf5CyJXIX6mnSSNgpzFFRaZh0KekLIMVe2vlkrWDMgaOTbvNds1U2bXVcjX4JGaP_jDM1';

    const PAYPAL_PARTNER_ID_SANDBOX = 'J7Q7R6V9MQZUG';

Website crash when in debug mode. running Prestashop 1.7.6.8 and Paypal Module v5.3.0

(1/1) ContextErrorExceptionNotice: Trying to get property 'id' of non-object

in Tools.php line 1346
at ToolsCore::getAdminTokenLite('AdminModules')in Link.php line 717
at LinkCore->getAdminLink('AdminModules', true)in paypal.php line 342
at PayPal->__construct()
at ReflectionClass->newInstance()in Container.php line 131
at Container->makeInstanceFromClassName('paypal', array('paypal' => true))in Container.php line 164
at Container->doMake('paypal', array('paypal' => true))in Container.php line 177
at Container->make('paypal')in ServiceLocator.php line 65
at ServiceLocator::get('paypal')in Module.php line 1141
at ModuleCore::coreLoadModule('paypal')in Module.php line 1120
at ModuleCore::getInstanceByName('paypal')in Hook.php line 884
at HookCore::exec('displayHeader')in FrontController.php line 556
at FrontControllerCore->initContent()in IndexController.php line 37
at IndexControllerCore->initContent()in Controller.php line 233
at Controller->run()in Dispatcher.php line 515
at DispatcherCore->dispatch()in index.php line 28

Can you please help ?

Unable to process payment

When I click pay the new tab opens and closes immediately. Then I see error:
Should equal item_total + tax_total + shipping + handling + insurance - shipping_discount - discount.

Prestashop version: 1.7.6.8
PHP 7.2
Module version: v5.3.0

Checkout error code 0

Hi!

I have an error on a checkout, can you help me please

"The value of a field does not conform to the expected format."

PS version 1.7.6.2
Paypal module 5.3.1
Captura

Cannot link PayPal account

Hello,

First of all thank you for this module.

Unfortunately I cannot link my PayPal account.
I have set up a new shop (I'm a prestashop newbie with experience in web development) using prestashop docker 1.7.6.9-7.2-apache and PayPal v5.2.1. When I click on the module's button to link my account, PayPal is opened in a popup. After successful authentication I am being redirected to my papal dashboard in a new tab and the popup closes. However, the module still shows no linked PayPal account. I get no error message in the backoffice or in the logs of the docker container.

Any help is appreciated.
Thank you

Display express checkout in displayExpressCheckout hook

The module allows the integration of the Express Checkout button in the following hooks:

  • displayReassurance (if enabled on Product pages)
  • displayShoppingCartFooter (if enabled on Cart)

At the moment displayExpressCheckout is not available in the list of hooks for transplanting the module.

If there a reason why not to use the displayExpressCheckout hook or any other hook to transpalnt the button?

Prestashop problem

Hi! I have a problem with the plugin in prestashop. The plugin says it's all right, but if I want to process my order, it hangs on "In few seconds, you will be redirected to PayPal. Please wait." . By clicking on the yellow button you are redirected to the PayPal page and there is the amount to be paid and the logo and money are transferred correctly, but the blue button at the end of the shopping cart does not work.. I have Prestashop version 1.7.5.2 and PayPal plugin version 5.0.2

Rounding issue for selling low priced items

When selling low priced items in large quantities, the calculation gets wrong and results error message for confirming the order.

In sample, washer 0.03 EUR without VAT. Vat 20% added, price with VAT 0.036 EUR. Client purchases 1000 ps. Result if calculated as rounded on each item: 0.036 rounded 0.04 x 1000 results 40 EUR. Price without tax 0.03 x 1000 = 30 EUR. Tax 10 EUR.

Real numbers should be, total 36 EUR, Without tax 30 EUR and Tax 6 EUR.

The difference is huge. No tax authority will take this as normal setup. No customer is ready to pay 4 EUR more. How to resolve the problem in the module for enabling to sell also low priced items in large quantities?

PayPal v3.14.2

Prestashop 1.6.1.13

Error reporting from your PayPalAPI module

 
A client has encountered a problem with the module PayPalAPI, see the report:
 
PayPal response:TIMESTAMP -> 2020-06-06T16:05:02ZL_ERRORCODE0 -> 10525L_SHORTMESSAGE0 -> Invalid DataL_LONGMESSAGE0 -> This transaction cannot be processed. The amount to be charged is zero.L_SEVERITYCODE0 -> Error

Problem with free orders.

5.2.1 problems in payment with Error code 0

I've recently update to version 5.21 from 5.0.3 and now, when you choose paypal to pay and press "go to the payment", the pop-up window shows and only show loading, then autoclosing and redirect to error page showing this message:
"Error code: 0;Short message: Must be greater than or equal to 0. If the currency supports decimals, only two decimal place precision is supported.; "
My prestashop version is 1.7.3.0 I have made a rollback to lower version (returns to 5.0.3) and works perfectly

Polish translation

Hello,

After update to 5.0.0 polish translation broke down, every diactric mark is replaced by underscore. This issue is present in 5.0.1 and 5.0.2 also

Version 3.14.2 error in rounding

Prestashop 1.6.1.11
Paypal 3.14.2

In some cases paypal total and cart total are different (some euro cents) resulting in blocked orders.
Is there a fix for this?

Control cancel URL before callAPI

Why not make a check for Cancel URL from this method :
public function setCancelUrl in file paypal/express_checkout/process.php
with this function : $url = Tools::secureReferrer($url);

Because for now it's possible to change Cancel URL without any checks.

Best regards
F

Infinite loop in paypal module

#PrestaShop 1.6.x
#PayPal module 3.12.1

In some circumstances, the file <id_cart>.txt opened at line 44 and with <id_cart> empty/false, already exists and it is not deleted by ipn.php.
This trigger an infinite loop in the while statement.
https://github.com/202-ecommerce/paypal/blob/b1e3bfe57b73e25db9d29d91c4050e2b9cc72f60/controllers/front/submit.php#L44-L50

Please fix the logic.

To workaround temporarily I changed this files:
paypal/controllers/front/submit.php at line 52-62
paypal/ipn.php at line 247-257
with this code to set a kind of timeout:

$seconds = 0;
if (!$res) {
    while (file_exists(dirname(__FILE__).'/../../'.$id_cart.'.txt')) {
        sleep(1);
        $seconds++;
        if($seconds >= 300)
        {
            @rename(dirname(__FILE__).'/../../'.$id_cart.'.txt', dirname(__FILE__).'/../../'.date('YmdHis').'_'.$id_cart.'.txt');
        }
    }
}

Error total amount with discount as gift

I have this discount

discountasgiftcart

Also prestashop creates correct cart

giftpaypal0

but paypal module try to charge

giftpaypal

with other kind of discount as price or % wokd fine.

Other payment modules works fine also, only fails if discount is gift

Regards.

3 decimal calculation payment error.

Hello, i noticed, if i have my prestashop rounding with 3 decimals instead of 2 (default), sometime the values calculated by paypal module differs from the checkout value. I sell products with Kg and gr Units, and it is imperative to use 3 decimals rounding to get the right (2 decimals) values with scale price from gr to Kg. It leads to susseccful payment from paypal but payment error from prestashop (including error email sent to client).

Payments through e-check are set as completed although it has not cleared yet

We have found a recurrent issue, when a user pays with e-check, the payment is set as completed in prestashop, then the user can cancel the e-check and we won't know until we manually review it.

I think the module should check if the request is an e-check payment (not instant) and set it to awaiting payment, and once it has been cleared mark it as completed.

https://github.com/202-ecommerce/paypal/blob/b7ed510138caeb4e7fceb806696f2c88dc283db6/classes/MethodEC.php#L786

Order ID and Store Name information to paypal payment

Hi,
Is it possibile to add Order ID and Store Name to paypal payment to easily recognize source of payment on paypal account?
I have 5 sites that uses the same Paypal Account to receive payments, so it's difficult to me recognize the shop.

Thanks,
Daniele

express checkout button image loading

we have installation of 1.7.6.5 with 2 languages english and greek .
The button displays the image ''us'' even if we are at greek language and the reason is because greek language iso code is ''el'' and no ''GR'' as the greek country code . If i understand correct the value for choosing the correct image is language code and no country code .
Awaiting for your answer thanks
eb21da11-9655-40b8-8564-35e9d0fb46a0

ppxo_paypal_legacy_gettoken_initxo when user close dialog before load ?

When user closes the [PayPal] dialog pop up before it fully loads, the paypal buy button no longer works unless the page is refeshed by the user.

The error reported is ppxo_paypal_legacy_gettoken_initxo

Issue referenced in this post:

This is now an unsupported integration. I would suggest asking prestashop to upgrade to the latest PayPal integration.

PrestaShop version: 1.7.6.3
Current theme in use: classic

Useful info:
https://stackoverflow.com/questions/50218079/bug-with-paypal-api-context-checkout

Fatal error on checkout page after 5.3.0 upgrade due to PaymentOption

After upgrading to Prestashop 1.7.6.9, I updated to Paypal 5.3.0 (the update was not available on 1.7.6.8??). No settings were changed.
Upon testing the checkout page, I realised it fails (error 500) as the page output stops printing after the Shipping Method tab's heading.
This happened on both dev and prod sites, so I had to revert back to 5.2.1.

This is the error I get in the logs:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption() must be of the type array, string given in /src/Core/Payment/PaymentOption.php:337
Stack trace:
#0 [internal function]: PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption('')
#1 /classes/checkout/PaymentOptionsFinder.php(46): array_map(Array, Array)
#2 /classes/checkout/PaymentOptionsFinder.php(82): PaymentOptionsFinderCore->find()
#3 /classes/checkout/CheckoutPaymentStep.php(84): PaymentOptionsFinderCore->present(false)
#4 /src/Core/Foundation/Templating/RenderableProxy.php(52): CheckoutPaymentStepCore->render(Array)
#5 /config/smartyfront.config.inc.php(98): PrestaShop\PrestaShop\Core\Foundation\Templating\RenderableProxy->render(Array)
#6 /classes/Smarty/SmartyLaz in /home/vipcigie/public_html/live/src/Core/Payment/PaymentOption.php on line 337

PHP is 7.3.24 on CentOS 7.

Any idea of what it could be caused by?

Unknown column 'id_paypal_order' in 'field list'

I have this error after updating the module to 5.1.x.

Unknown column 'id_paypal_order' in 'field list'

SELECT id_paypal_order
FROM ps_paypal_order
WHERE (id_order = 7524) LIMIT 1

Steps to reproduce:

  • Install Pretashop 1.6.x
  • Install paypal 3.11.x
  • Upgrade Prestashop to 1.7.6.x
  • Upgrade paypal to 5.1.2
  • Enable dev mode
  • Go to Admin orders and open one.

I'have take a look to the upgrades code from 3.11.0 to 5.1.2 and I did not find were the schema of the table paypal_order is update.

I think there is no schema update for this table, and some new fields are missing.

Checkout error

Hi!

I have an error on a checkout, please help

"The value of a field does not conform to the expected format."

PS version 1.7.6.7
Paypal module latest 5.2.1

Captura de Pantalla 2020-11-10 a la(s) 0 16 41

Paypal Integral evolution order = 0

Hello,

My prestashop (1.6.1.4 and 1.6.1.18), and Paypal 3.12.1, multishop and single shop
All order with paypal integral are working perfect.

All order with Paypal integral evolution are returning in Prestashop BO as "waiting for paypal confirmation" "PAYPAL_OS_AWAITING_HSS"

The url of all order have ID_order=0 (/module/paypal/submit?id_cart=&id_module=*&id_order=0&key=...

I have already uninstall and reinstall the module but problem still here.

This happen on more then one website so the problem come from the module or an configuration on module or Paypal.
I don't use IPN,

I already did an ticket on addon prestashop, but as i see a lot of people having this issue with paypal integral evolution i'm asking in here, maybe answer will be best :)

Kind regards,

Receiving country does not support the transaction currency.

Hi. I'm trying to buy an item from my online shop. I'm using PrestaShop 1.7.6.5.
When I pay using dollars, everything works fine, but when I try to pay using Lempiras (which is the main currency in my shop), I get this error:

[10605] Transaction refused because of an invalid argument. See additional error messages for details.
Mensaje de error adicional: Receiving country does not support the transaction currency.

Actually, I would just like this module to include an option that let me pay just in dollars. I mean, if my clients are trying to pay in Lempiras, it would be nice this module to transfer payment to Dollars in the cart.

Sorry for my english.
Thank you

Maintenance mode - The PHP cURL extension must be enabled on your server

If the shop is in maintenance mode, it says that the PHP cURL extension is not enabled even if it is.

See blog post:
https://www.prestashop.com/forums/topic/997336-prestashop-believes-curl-is-not-installed/

Probably an issue in the _checkTLSVersion when the site is in maintenance.
https://github.com/202-ecommerce/paypal/blob/000096e46712f2b2b74bb57ddff16d31564c3220/classes/AdminPayPalController.php#L152

Or, maybe add in the statusBlock that the site must NOT be in maintenance mode. That would help with the confusion.

Display "Checkout with PayPal" button on checkout rather than "Buy with PayPal"

On the cart page when the option "Display shortcut in the cart" option is turned on, the module displays "Buy with PayPal".

(Display shortcut in the cart)
image

(Cart)
image

This makes sense in the context of a product, but on the cart page, it would make more sense to the customer if it displayed "Checkout with PayPal" or "Express checkout with PayPal".

E.g. the button at /views/img/ECShortcut/us/checkout.png:
image

Paypal 5.1.0 is broken

I'm just installed paypal 5.1.0 in Prestashop 1.7.6.2 and got this error:

The controller AdminPayPalSetup is missing or invalid.

Steps:

  1. uninstall paypal 3.11.4
  2. download and install paypal 5.1.0 (reinstall in case of error with database)

v.5.3.1 crashing when redirecting (PS v. 1.7.7.1) Seller location: Germany

Hi,

I believe PayPal Plus is crashing for German PrestaShop shops.

I run:
latest PrestaShop (v.1771)
latest module downloaded through the marketplace (v5.3.1)
php version: PHP 7.3.24

The issue seems to be in an external script injected by the module that comes from paypal:
https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js

image

Due to the JS error, the redirect fails and the customer is not sent to PayPal to finish the purchase.

Please advise.

Bug on multiple discounts for each product in an order

We have discovered a problem:

list of prestashop products: https://gyazo.com/53404b9ec77f63cbd655e0f976435b95

list of discount for each accessories: https://gyazo.com/b789dc0a7b335e133ea601cba0891fd9

Total is wrong:
image
must be 145.91€

When customer will pay with PAYPAL this is what paypal processing:

List of products: https://gyazo.com/b52725c76727f0da3c4168828a49486b

List of discounts: https://gyazo.com/69d959bd52af56d73cdf971c99c5ca2f

Total order on Paypal:
image

When the Order is passed to paypal we can see what is the problem, because discounts are progressive lower!

only the first product discount is right: -5.70€, the other discounts are progressively lower!

And the total si wrong again, because using excel the toal must be:
image

PS 1.7.6.7
PHP 7.2
Paypal Module v5.1.5
Warehouse theme
Round settings:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.