payplug / payplug-magento2
Payplug Payments module for Magento 2
Installs: 28 141
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 7
Forks: 4
Open Issues: 2
Type:magento2-module
Requires
- php: >=8.1
- giggsey/libphonenumber-for-php: ^8.10
- magento/framework: 102.0.*|103.0.*
- magento/module-checkout: 100.3.*|100.4.*
- magento/module-payment: 100.3.*|100.4.*
- magento/module-sales: 102.0.*|103.0.*
- payplug/payplug-php: ^3.2.0
- dev-master
- 4.3.4
- 4.3.3
- 4.3.2
- 4.3.0
- 4.3.0-RC
- 4.2.0
- 4.1.0
- 4.0.0
- 3.5.5
- 3.5.4
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.0.0
- 1.27.4
- 1.27.3
- 1.27.2
- 1.27.1
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.1
- 1.24.0
- 1.23.1
- 1.23.0
- 1.22.0
- 1.21.2
- 1.21.1
- 1.21.0
- 1.20.1
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.1
- 1.16.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.4
- 1.5.2
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- dev-feature/apple-pay
- dev-release/v4.4.0
- dev-feature/apple-pay-refacto
- dev-release/v4.3.4
- dev-feature/MAG-412
- dev-develop
- dev-feature/MAG-441
- dev-feature/MAG-404-script-refacto
- dev-feature/MAG-404
- dev-release/v4.3.1
- dev-feature/MAG-413
- dev-release/v4.2.0_test
- dev-MAG-369
- dev-feature/MAG-402
- dev-feature/MAG-394
- dev-MAG-315
- dev-qa
- dev-MAG-368
- dev-MAG-316
- dev-MAG-354
- dev-multi-account-test
- dev-dev-new
This package is auto-updated.
Last update: 2025-04-28 16:09:05 UTC
README
Installation
Installation via Magento Back Office
You can follow Magento’s instruction provided at https://devdocs.magento.com/guides/v2.3/comp-mgr/extens-man/extensman-main-pg.html
Installation via composer
Composer
How to get Composer : Please follow instructions on https://getcomposer.org/download/
How to update your Composer version : Please follow instructions on https://getcomposer.org/doc/03-cli.md#self-update-selfupdate-
Installation
Run the following commands in Magento root directory:
composer require payplug/payplug-magento2 # (*)
composer install
php bin/magento module:enable Payplug_Payments --clear-static-content
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy <languages> # (**)(***)
php bin/magento cache:clean
(*) If you didn’t save them when you installed Magento 2, this command will ask for your Magento authentication keys (https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html). Login = Public Key Password = Private Key
(**) With the languages option, you can define for which language you want to generate your static content. Languages should be separated with a space. For example, to generate content for locales en_US and fr_FR, you can run the command:
php bin/magento setup:static-content:deploy en_US fr_FR
(***) If you are not running on production mode, use the --force option. Otherwise the command will fail. For example, to generate content for locales en_US and fr_FR, you can run the command:
php bin/magento setup:static-content:deploy --force en_US fr_FR # --force # if you are not running on production mode
Troubleshooting:
If you get a missing class error message while following the install process:
[ReflectionException] Class Payplug\Authentication does not exist
It’s likely that the Payplug PHP library was not installed along with the Magento module. This will happen if you did not run composer to install the module. To fix it, you should require the missing dependency with composer :
composer require payplug/payplug-php:^3.0
You will then need to install another library which we use to normalize the customers' phone number
composer require giggsey/libphonenumber-for-php:^8.10
Cron Job Configuration
The Payplug Payments module introduces new cron tasks that are grouped under the payplug
cron group in etc/crontab.xml
. These cron jobs must run for the module to function properly.
payplug_payments_check_order_consistency
: Checks and updates the consistency of orders with Payplug.payplug_payments_auto_capture_deferred_payments
: Capture the deferred payments after too much time elapsed.- If your orders get stuck in
payment review
status, it typically indicates thatpayplug_payments_check_order_consistency
is not running. Be sure to include this cron in your system’s crontab so that it is executed regularly (every 15 min by default, but you can override it to run it more frequently).
Verifying Crons and Logs
- Ensure your Magento crontab is correctly configured to run all Magento cron groups, including the
payplug
group which should be handled by default with thecron:run
native command, deployed by the other nativecron:install
command. - If you need to investigate any issues with these jobs, you can consult the
var/log/payplug_payments.log
file to see detailed logs and errors related to the Payplug Payments module’s cron executions.
For more information on how to properly configure and schedule Magento 2 cron jobs, consult Magento’s official documentation
For more information about the new payplug_payments_check_order_consistency
cron, consult
the Payplug CRON documentation
Update Payplug Payments Module
Run the following commands in Magento root directory:
composer require --update-with-all-dependencies payplug/payplug-magento2:VERSION_YOU_WANT_TO_UPDATE_TO # (*)
composer install
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy <languages> # (**)
php bin/magento cache:clean
(*) To determine which value for VERSION_YOU_WANT_TO_UPDATE_TO
, you can check out our last releases
For example, you can run:
composer require --update-with-all-dependencies payplug/payplug-magento2:^1.5
(**) With the languages option, you can define for which language you want to generate your static content. Languages should be separated with a space. For example, to generate content for locales en_US and fr_FR, you can run the command:
php bin/magento setup:static-content:deploy en_US fr_FR