If already have your e-commerce platform on Magento 2 we
have the module for using our payments solutions.
How to install the Paymentez module for Magento 2
This module is a solution that allows Magento users to easily
process payments with Paymentez.
Download and Installation
1. Execute this command for install our package:
Install the latest version.
composer require paymentez/payment-gateway
Install a specific version.
composer require paymentez/payment-gateway:2.3.1
Once the installation finished, continue with the next
commands in your bash terminal.
2. Update dependency injection:
php bin/magento setup:di:compile
3. Update modules registry:
php bin/magento setup:upgrade
Optional.- This command is optional for production
environments:
php bin/magento setup:static-content:deploy
Now you can see the Paymentez settings in this path
Stores > Configuration > Sales > Payment
Methods
on your Magento admin dashboard.
Maintenance
If you need update the plugin to latest version execute:
composer update paymentez/payment-gateway or
composer require paymentez/payment-gateway:2.3.1
for specific version.
Webhook Notifications and Order Updates
Every time a transaction changes their status you will get an
HTTP POST request from Paymentez to your webhook.
The URL that will be used for the order updates via webhook
is:
https://magentodomain.com/rest/V2/webhook/paymentez
This URL will be configured on Paymentez.
The Magento 2 configuration should look like this:
Configuration for LinkToPay:
Paymentez Payment Gateway Plugin for WooCommerce
Download latest version on GitHub
This is a WordPress plugin that integrates the Paymentez
payment gateway into WooCommerce, offering two independent
payment methods:
Paymentez Checkout: Payments with credit/debit
cards through a secure modal using the official Paymentez
SDK.
Paymentez Link to Pay: Hosted payment link
that redirects the customer to the Paymentez platform, with
support for PSE, cash, digital wallets and more.
Requirements
- WordPress 6.5 or higher
- WooCommerce 8.0 or higher
- PHP 7.4 or higher (compatible with PHP 8.x)
1.- Prerequisites
1.1.- XAMPP, LAMPP, MAMPP, Bitnami or any PHP development
environment
- XAMPP: https://www.apachefriends.org/download.html
- LAMPP: https://www.apachefriends.org/download.html
- MAMPP: https://www.mamp.info/en/mac/
- Bitnami: https://bitnami.com/stack/wordpress
1.2.- Wordpress
If you already installed the Bitnami option, this step can
be omitted.
The documentation necessary to install and configure
Wordpress is found at the following link:
https://wordpress.org/support/article/how-to-install-wordpress/
All minimum requirements (PHP and MySQL) must be met for
the developed plugin to work correctly.
1.3.- WooCommerce
The documentation needed to install WooCommerce is found at
the following link:
https://docs.woocommerce.com/document/installing-uninstalling-woocommerce/
There you will also find the information necessary to
troubleshoot installation-related issues.
1.4.- WooCommerce Admin
The documentation needed to install WooCommerce Admin is
found at the following link:
https://wordpress.org/plugins/woocommerce-admin/
There you will also find the information necessary to
troubleshoot installation-related issues.
2.- Git Repository
You can download the current stable version from:
https://github.com/paymentez/pg-woocommerce-plugin/releases
3.- Plugin Installation
The development works as a WordPress plugin that connects
to another WordPress plugin, WooCommerce.
So when it is installed and activated, WooCommerce and
WordPress hooks and actions are used.
3.1 Installation and Activation Through WordPress Admin
When we have the project compressed in .zip format, we
proceed to the installation through WordPress Admin.
-
The first step will be to log in to WordPress Admin as
an administrator.
-
Being in the main screen of the administrator, we click
on the Plugins tab.
-
Within the Plugins screen, we click on Add New.
-
Within the Add Plugins screen, we click on Upload
Plugin.
-
The option to upload our plugin in .zip format will be
displayed. We upload it and click the Install Now
button.
-
We will be redirected to the plugin installation screen.
We wait for the message "Plugin installed successfully"
and click the Activate Plugin button.
-
We will be redirected to the Plugins screen where we will
see our plugin installed and activated.
3.2. Languages
The plugin language is selected dynamically according to the
language configured in WordPress. Available languages are:
- English (Default)
- Spanish
- Portuguese
4.- Activation and Configuration of the Plugin in
WooCommerce
After installing the plugin in WordPress, we must proceed
to configure it in the WooCommerce administrator. The plugin
registers two independent payment methods that must be
enabled and configured separately.
We navigate to
WooCommerce → Settings → Payments
where we will see both detected and installed methods:
Paymentez Checkout and
Paymentez Link to Pay.
4.1 Activation of Payment Gateways
For each payment method, we enable the
Enable button on the WooCommerce Payments
screen. This enablement is independent of the plugin
activation in WordPress that we performed earlier.
4.2 Configuration of Paymentez Checkout (Card Payment)
We click on Manage next to
Paymentez Checkout.
The options to configure are:
-
Enable/Disable: Activates this
payment method at the checkout of the store.
-
Environment: Select
Staging (testing) or Production.
In Staging the plugin will point to Paymentez's
test server.
-
Title: Text that the customer will
see next to the payment method in the checkout.
-
Description: Message that the customer
will see when selecting this payment method.
-
Button Text: Text to be displayed on
the payment button of the modal.
-
App Code: Unique identifier provided
by Paymentez.
-
App Key: Key used to encrypt
communication with Paymentez.
4.3 Configuration of Paymentez Link to Pay
We click on Manage next to
Paymentez Link to Pay. The options to
configure are:
-
Enable/Disable: Activates this
payment method at the checkout of the store.
Supports PSE, cash, digital wallets and
bank transfers.
-
Environment: Select
Staging (testing) or Production.
-
Title: Text that the customer will
see next to the payment method in the checkout.
-
Description: Message that the customer
will see when selecting this payment method.
-
App Code: Unique identifier provided
by Paymentez.
-
App Key: Key used to encrypt
communication with Paymentez.
5.- Select the Plugin in the Store Checkout
When we have our plugin activated and configured in
WooCommerce, we will see it available to be selected by
customers on the Checkout page of our store.
Simply select it, complete the Billing Details and click
the Place Order button.
Clicking on it will take us to the Order-Pay or Pay For
Order window where we will see a summary of our order. The
Pay with Card and/or Pay with Cash/Bank Transfer button
will be displayed, which will open the payment process.
6.- Process to Make a Refund
The refund process will begin in the main WordPress
administration window.
We select the WooCommerce tab and click on the Orders
option.
We select the order we want to refund and the Edit Order
window will open.
In the item detail we will find the Refund
button, we click it and the refund options will be
displayed.
We type the amount to refund and click the
Refund via Paymentez button. The status
within WooCommerce will change and so will the status at
the gateway.
7.- Webhook Configuration
The plugin includes a webhook endpoint to receive
transaction notifications from Paymentez and automatically
update order statuses in WooCommerce. Validation is
performed using HMAC-SHA256.
To configure it, the merchant must register the webhook URL
in the Paymentez panel. The URL follows
the following format:
https://{{URL-COMMERCE}}/wp-json/paymentez/webhook/v1/params
Note: If the site uses
plain permalinks, use the following alternative
format:
https://{{URL-COMMERCE}}/?rest_route=/paymentez/webhook/v1/params
We have implemented the solution
eCommerce VTEX + Paymentez
How to configure Paymentez v2
For these instructions, it is assumed that the
VTEX administrator on behalf of the merchant is well acquainted with the admin panel.
Follow the following steps:
-
Enter the payment configuration section.
-
Select the Gateway Affiliations tab and add one by clicking the plus button.
-
Within the alphabetically ordered OTHERS list,
search for the connector named PaymentezV2.
-
Once the connector is selected, you must configure it, where
Application Key is the Application Code provided by
Paymentez and the Application Token is the Application Key
provided by Paymentez. You can specify there
the environment you want to point to, with
Live/Production for production environment and Test
for staging environment. It should look like this:
-
Once the affiliation is configured, it can be
assigned for the payment method that the
administrator selects.
Keep in mind that when assigning the affiliation to an
established franchise, ALL transactions with that
franchise will be processed with Paymentez.
-
Enter the payment configuration section.
-
In the Payment Conditions tab, add a
new condition by clicking the plus button.
-
Select the franchise you want to process with
Paymentez
-
Once the franchise is selected, you must assign a
name to the condition and select the
PaymentezV2 affiliation
-
Regarding whether to select full payment or installment payments, this is at the
discretion and knowledge of the VTEX administrator of the
merchant.
Keep in mind that when assigning the affiliation to an
established franchise, ALL transactions with that
franchise will be processed with Paymentez.
-
Enter the payment configuration section.
-
In the Payment Conditions tab, add a
new condition by clicking the plus button.
-
Within OTHER exists the Cash option, select
this
-
Select the configured Paymentez affiliation.
-
Regarding assigning special conditions for payment, this is at the
discretion and knowledge of the VTEX administrator of the
merchant.
PSE is a payment method that does not appear within the
existing VTEX options, so it is necessary to create it
through a Promissories.
-
Enter the payment configuration section.
-
In the Custom Payments tab, add a new
condition by clicking a Config checkbox.
-
Within the configuration, you must assign the name
PSE (this name is completely required as it is used
to identify the payment method by the connector).
In expiration time, 2 is required, since on the
Paymentez side two days are given for the end customer
to pay. The data should look like what is shown in
the image.
-
Select the configured Paymentez affiliation.
-
Regarding assigning special conditions for payment, this is at the
discretion and knowledge of the VTEX administrator of the
merchant.
LinkToPay is a payment method that does not appear within the
existing VTEX options, so it is necessary to create it
through a Promissories.
-
Enter the payment configuration section.
-
In the Custom Payments tab, add a new
condition by clicking a Config checkbox.
-
Within the configuration, you must assign the
name LinkToPay (this name is completely required
as it is used to identify the payment method by the
connector). In expiration time, 2 is required,
since on the Paymentez side two days are given
for the end customer to pay. The data should
look like what is shown in the image.
-
Select the configured Paymentez affiliation.
-
Regarding assigning special conditions for payment, this is at the
discretion and knowledge of the VTEX administrator of the
merchant.
Paymentez Payment Gateway Plugin for Prestashop
Download latest version on GitHub
This plugin integrates the Paymentez payment gateway into
Prestashop.
Requirements
- PrestaShop 8.0.0 or newer (8.x and 9.x)
- PHP 7.4 or higher (compatible with PHP 8.x)
- Any PHP development environment such as XAMPP, LAMPP, MAMPP or Bitnami
1.- Prerequisites
1.1.- XAMPP, LAMPP, MAMPP, Bitnami or any PHP development
environment
- XAMPP: https://www.apachefriends.org/download.html
- LAMPP: https://www.apachefriends.org/download.html
- MAMPP: https://www.mamp.info/en/mac/
- Bitnami: https://bitnami.com/stack/prestashop
1.2.- Prestashop
Warning, if you already install the Bitnami option this step
can be omitted.
Prestashop is an e-commerce solution, it's developed on PHP.
This plugin is compatible with PrestaShop 8.0.0 and newer
(8.x and 9.x).
Download
|
Install Guide
2.- Git Repository
You can download the current stable release from:
https://github.com/paymentez/pg_prestashop_plugin/releases
3.- Plugin Installation on Prestashop
-
First, we need to download the current stable release of
Paymentez Prestashop plugin from the previous step.
-
We need to unzip the file to get the
pg_prestashop_plugin-3.0.0 folder.
-
Now you rename the folder from
pg_prestashop_plugin-3.0.0 to
pg_prestashop_plugin.
-
Compress on zip format the folder to get a file called
pg_prestashop_plugin.zip.
- We need to log in to our Prestashop admin page.
-
Now we click on
Modules -> Module Manager
-
In the Module manager we click on the
Upload a module button
-
We click on select file, or we can
drop the Paymentez Prestashop plugin
archive in .zip
format.
-
We will wait until the
Installing module screen changes to
Module installed!.
-
Now we can click on Configure button
displayed on the screen or in the
Configure button displayed on the
Payment section on the
Module manager.
-
Inside the Payment Gateway Configurations
we need to configure the Server credentials
provided by Paymentez, we can select the
Checkout Language that will be displayed to
the user, also we need to select an
Environment, by default STG (Staging) is
selected.
-
Congrats! Now we have the Paymentez Prestashop plugin
correctly configured.
4.- Considerations and Comments
4.1.- Refunds
-
The plugin supports Partial Refunds and
Standard Refunds only for
card payments. LinkToPay does not support
refunds.
-
The Standard Refund now uses the full paid
order amount when Credit slip is selected
in PrestaShop. Partial refunds still use the selected
products and shipping amount. A success refund operation
depends on the configured payment network accepting refunds.
4.2.- Webhook
The Paymentez Prestashop plugin has an internal webhook in
order to keep updated the transactions statuses between
Prestashop and Paymentez. You need to follow the next steps to
configure the webhook:
- Login into the Prestashop Back-office.
-
Navigate to Advance Parameters -> Web Services menu
options to open the Web Services page.
-
It will redirect to the Web Services page having the listing
of available Webservices, and the configuration form to
configure the service.
-
We need to enable the field called
Enable Prestashop webservice.
- Click on Save button.
-
The module creates the paymentezwebhook
webservice key automatically during installation.
-
Edit that key in Advanced Parameters -> Web Services
and manually enable POST permission for
paymentezwebhook.
-
You can review/copy the generated key in that same screen.
-
The webhook is located on
https://{mystoreurl}/api/paymentezwebhook?ws_key=THE_KEY_CREATED_BY_THE_MODULE.
- You need to give this URL to your Paymentez agent.