The latest version of the plug-in made available by Payline is shown below. In the event of difficulties encountered in the use of the module, we advise you to contact a technical specialist. |
Recurring payments (REC) and installments payments (NX) are not available on Payline WooCommerce module. We do not plan any evolution. |
The Payline plugins for WooCommerce allow a quick implementation of Payline solution in your shop.
The plugin for WooCommerce 1.x is made available in form of compressed folder named wooCommerce16_Payline.zip containing two directories: assets and classes .
It contains the elements allowing the call of Payline web services, as well as the integration of Payline within the front-office (payment) and back-office (configuration) parts of your shop carried out under a 1.x version of WooCommerce.
The plugin for WooCommerce 2.0 is made available in form of compressed folder named woocommerce-payline_v1.0.zip containing a single directory: woocommerce-payline .
It contains the elements allowing the call of Payline web services, as well as the integration of Payline within the front-office (payment) and back-office (configuration) parts of your shop carried out under WooCommerce 2.0
The plugin for WooCommerce 2.0 is developed and tested with the following environment:
The plugin for WooCommerce 1.x is developed and tested with the following environment:
Download plugins:
|
The github link: github.payline.woocommerce
The Payline plugins for WooCommerce are built around the Payline PHP kit, whose operation requires the activation of php_curl , php_http , php_openssl and php_soap extensions .
You must also have Payline account to configure your plugin.
The Payline solution is based on the call of web services, make sure that the call of secure web services is therefore possible with your hosting solution (the opening of ports 8080 and 443 in input / output is necessary).
Unzip the content of wooCommerce16_Payline.zip in the WooCommerce plugin directory on your shop server (by default wp-content / plugins / woocommerce / ). Since the assets and classes subdirectories are already present in this directory, this operation will merge their content with that of wooCommerce16_Payline.zip .
Then edit the woocommerce.php file located under wp-content / plugins / woocommerce / and add the highlighted line below:
// Include Core Payment Gateways include( 'classes/gateways/class-wc-payment-gateways.php' ); include( 'classes/gateways/class-wc-payment-gateway.php' ); include( 'classes/gateways/bacs/class-wc-bacs.php' ); include( 'classes/gateways/cheque/class-wc-cheque.php' ); include( 'classes/gateways/paypal/class-wc-paypal.php' ); include( 'classes/gateways/cod/class-wc-cod.php' ); include( 'classes/gateways/mijireh/class-wc-mijireh-checkout.php' ); include( 'classes/gateways/class-wc-payline.php' ); |
Log into your WordPress back office. Click on Add New in the Pluggins menu :
On the Install Plugins screen displayed, click the Upload link . Then click on Choose a file button and select the woocommerce-payline_v1.0.zip archive in your system. Once the archive is selected, click on Install Now button .
This step only applies for plugin for WooCommerce 2.0.
To activate this plugin, click on corresponding link in Installed Pluggins screen :
The Payline plugin configuration form is accessible via the Payline link under Payment Gateways tab of WooCommerce plugin configuration screen:
The form displayed is identical under WooCommerce 1.x and WooCommerce 2.0
Once the plugin is installed, configured and activated, Payline can be selected by customers of your WooCommerce store on Checkout page:
When confirming the order after choosing Payline as the payment method, the customer is redirected to Payline payment web page. The means of payment corresponding to contracts chosen in the configuration of plugin are offered to him.
He can enter his payment information securely.
From this stage, the order is created in the pending state and can be viewed in the back office of the store.
Once the entry of his payment information validated, the customer obtains a confirmation screen informing him of the result of his transaction. On this screen, a "back to the store" button allows him to be redirected to the order confirmation page in the WooCommerce store. The wording chosen for Payline method is recalled on this page.
If the payment is canceled or refused, the customer is redirected to the standard WooCommerce page indicating that the order is not paid. The Pay button allows you to start the process again.
The return to the store immediately updates the order status. If the payment is refused or canceled, the order is changed to failed status .
When the payment is accepted, the order goes to the processing state .
If the payment web page is closed without the customer returning to the store, the update in your WooCommerce store will be automatically carried out by the Payline notification processing.
Payment information appears in the Custom Fields section of the order detail: