The main features of this module are:
- Simplified configuration
- Direct call to the payment page
- Server-to-server call for guaranteed insertion and closing of orders
- Multi-shop support
- Multi-language support
- Iframe payment support
- Payment management integrated in orders page
- Token support and one-click payment
- View transactions list
Prestashop versions compatibility:
Compatibility is not guaranteed if there are installed modules that modify the normal checkout flow.
You can install Gestpay module for Prestashop as usual, by searching for it in the Modules directory and by clicking on Install.
Otherwise you can browser the plugin from Prestashop Addons directory.
Gestpay has many options avaliable; you can access the module configuration by clicking on Modules > Modules & Services > Installed Modules. Here, find Gestpay and click on Configure.
All the customizable settings are shown:
Let’s discuss the parameters and their options.
|Shop Login||The shop login code assigned by Gestpay. Note: that the test shop code is different from the production shop code.|
|Platform||The service version you choose to use (Starter, Professional or Unlimited)|
|Enable test mode||In test mode, all requests are sent to Gestpay test environment where no money is involved. When your setup is done, you can switch to production environment.|
|Enable payment page localization||When this switch is enabled, the customer’s language is passed as a parameter to Gestpay, that will translate the payment page accordingly. Note: Check that the language parameter is enabled in Gestpay backoffice.|
|Enable iframe payment||Enables the payment form via iframe, so that the payment is handled securely.|
|Enable tokens||By enabling this option together with the iFrame solution, the plugin allows to pay with a token instead of a credit card. This token is a secure representation of the credit card that will be saved inside the database.|
|Use Sales API||Allows to manage in the orders page all the operations on the transaction, without accessing Gestpay backoffice.|
|Sales API automation||Refunding and Cancelling operations can be performed directly from the order page, without accessing Gestpay backoffice.|
|Test connection||Click here to check if the connection between your server and Gestpay is correctly configured.|
|Remove data on uninstall||When uninstalling this module, remove tables, transactions and settings from the database|
|Enable module debugging log||Enables logs on module operation. Activate only if requested by the customer care.|
See all transactions and their status by clicking on Trnsactions Log.
Gestpay Backoffice configuration
To configure the plugin:
- set up response urls
- set up the server IP
- set up fields & parameters
Set up response urls
Go to Configuration > Environment > Response Address.
- for URL for positive response and URL for negative response, set
- for URL server to server:
The plugin shows these values in the URL section:
Setup IP Address
In Configuration > Environment > IP addresses you must insert the server’s IP address.
The plugin shows this value in the URL section, see last image for this.
The IP address shown here might be incorrect; please verify with your hosting service the right external IP.
For cloud hosted websites, more info can be found here.
Trick: you can see what IP Gestpay observes, by going in Payment Page > Auto Test. Clicking on the last call, assuming you have done at least one call, you can see the IP address.
Configuring Gestpay - Payment Parameters
The payment page configuration depends on the Platform you choose above. There are two main cases:
- Redirection to Gestpay payment page
- Payment with iframe and token
Parameters can be found in the Merchant Back-Office, by clicking on Payment Page > Fields & Parameters.
To activate a parameter, open the dialog box and check the Parameter checkbox.
The follwing is an example for the PaymentTypes parameter, the others follow the same logic:
Note: not all parameters are editable.
Once you have applied the configuration, remember to click on the Publish button at the top of the page.
Redirection to Gestpay Payment Page
In order to pay with the Payment PAge, the fields that must be passed are:
- Buyer e-mail
- Buyer name
- Language (if you’ve enabled Enable payment page localization in the plugin )
- Shop Transaction ID
iFrame and tokens
The setting enable iFrame payment activates an integrated payment page in Prestashop, that allows a secure trasmission of the credit card. The merchant will never see the credit card, at any moment.
If at purchase time the user wants to save the credit card on the website, it will be saved as a token, a non-sensitive datum that can be stored in Database without being PCI compliant, thus enabling one-click payments.
By activating Enable tokens in the payment page the buyer will see a form to insert the credit card:
At the end of the transaction, if the customer has decided to save his credit card in the shop, next payments will be done without inserting any credit card number and with just one click:
When the credit card expires, the user will see again the iframe form.
To enable iFrame, Gestpay customer support will create a new NO DISPLAY page with its own set of parameters.
Contact firstname.lastname@example.org for help.
The configuration of fields & parameters is the same of above.
use of Tokens
If you enable the Token mode, enable the parameter Token Request.
For these three parameters:
- Token Expiry Month
- Token Expiry Year
you must also check the Web Service Response checkbox.
with the Sales API, you can manage transactions and authorization/reimbusements directly from the orders page.
By activating the Sales API setting, in Orders Management you’ll see a new view with all transaction info:
From this view you can:
- Settle a transaction (see M.O.T.O. for more info)
- Refunds and partial refunds
Settling a transaction is required when there is separation between authorization and settlement (again, see M.O.T.O. for more info).
You can also refund a transaction, until the eventual delete of the transaction. Insert the amount to refund in the textbox and click on Refund. The operation is real-time.
In case the setting Sales API automation is active, some operations on the order will automatically generate refunds in Gestpay. For example:
- Order status changed in
cancelled: it generates a complete refund of the transaction.
- Standard refund: generates a refund of the same amount, only if the parameter generate a credit note is selected:
- Partial refund: always generates a refund of the same amount.
|The payment button doesn’t show||Verify the list of transactions in the module configuration page. In case you see
|At the end of the payment the order is not inserted in the system||There may be different causes:
- The Prestashop core has been modified
- The module