WooCommerce is a marketplace plugin for wordpress. You can start selling your items in less than 15 minutes, and there are also many plugins to accomplish all your needs.
Gestpay develops and distributes a free plugin for WooCommerce.
The only prerequisite is that you already know how to use Wordpress and WooCommerce, as a user. You won’t need coding skills to use the plugin.
To simplify the configuration, use a Wordpress instance deployed on a public server. Using it on a local server might be difficult since Gestpay might not be able to access your machine from outside.
How to install
Download the zip file and save to a known location on your hard drive.
In Wordpress, Plugins > Add New; search for Gestpay for WooCommerce and click install now.
Don’t forget to Activate the plugin.
If you want to manual install the plugin, you can find it in the Wordpress Plugin Repository.
Configure Gestpay for WooCommerce
Once installed and activated, you’ll can go to WooCommerce > Settings and click on Gestpay for WooCommerce tab to configure the plugin.
There are four operational modes in this plugin, selectable by the Account Version dropdown. Which one to use depends on Gestpay version you are using:
The plugin also supports Subscriptions.
Gestpay Starter is the easiest version of the plugin. By using this, your buyer will be redirected to Gestpay payment page. After the payment, the user is redirected again on your website.
Here we will describe the configuration options.
|GestPay Shop Login||The unique Gestpay identifier. You can also use a test shop login (see below).
Here you can insert either the TEST
|IP Address||The plugin will detect the server public IP. Use this IP to configure Gestpay.|
|Sandbox mode||Check if you want to redirect your payments to the test environment, where you can test the payment process without real credit card numbers and money.|
|Debug log||Check if you want to save a log of the data sent to Gestpay. Useful for testing and for bug reporting.|
|Force response verification||In case of problems with order status updates, check this option. The Gestpay response will be forcely verified.|
With Gestpay Professional you can further customize the way Gestpay interacts with your users. Your buyers will still be redirected to Gestpay payment page for credit card payments, but you can also configure Gestpay to work with alternative payment methods (like PayPal), so that your users can choose the payment method they prefer.
You can choose to send to Gestpay the buyer e-mail and name, a language parameter, and even some custom parameters.
Besides the options already described for Gestpay Starter, here’s a description for Gestpay Professional settings:
|Buyer email||Check if you wish to send to Gestpay the buyer’s e-mail.|
|Buyer name||Check if you wish to send to Gestpay the buyer’s name.|
|Language||Checking this option you can change the language of the payment page.
The languages available in Gestpay are italian, english, french, german and spanish.
To use this functionality you have to enable a multilingual plugin: Gestpay for WooCommerce is compatible with qTranslate-X and with WPML.
If you prefer to replicate the same website in many languages, you can define the constant
|Custom info||Here you can insert custom data in the form of
|Payment Types||Check if you want to redirect your users directly to a specific payment method.|
|Alternative Payments||Here you can enable other systems, like PayPal, Consel, Masterpass, etc.|
Gestpay Professional On Site
Gestpay Professional On Site allows the user to pay directly from your website, without redirects. On page
/checkout the user will be able to insert, along with the shipping address, his payment details.
With Professional On Site you can also memorize a masked version of the credit card that you can later use to simplify the shopping process, or to enable subscriptions (see the subscriptions paragraph).
Professional On Site adds some new parameters to the settings page, besides the ones already described for Starter and Professional.
|Store Tokens||if enabled, a token is requested to Gestpay and stored in the database. With tokens you can enable recurrent payments; a logged user can also pay without inserting credit card data.|
|CVV||Send the CVV field to Gestpay, when requesting a Token. Note: the field must be set as input in the Merchant Back office, otherwise you’ll receive an error.|
|3D Secure||if checked, the 3D Secure must is enabled for this shop (default).|
3D Secure is a security protocol. If the card supports 3D Secure, the user is temporarly redirected on the cardholder website to enter a personal code. This guarantees that the transaction is non disputable; However, for subscriptions or automatic payments this feature must be disabled (ask the customer care for this), otherwise the payments will fail.
Gestpay Professional iFrame
Gestpay professional iFrame is very similar to Professional On site; however, after the checkout phase the user is redirected to
:id is the order number.
Aviable settings are the same of the previous versions. The differences are that with iFrame version the buyer cannot choose his tokenized credit card; however, the site can still sell subscriptions and recurring payments using this method.
Gestpay for WooCommerce supports subscriptions and recurrent payments, by using the WooCommerce Subscriptions plugin (not included).
To start, create a subscription product in your shop. To do this, setup the pricing as this:
In WooCommerce Subscriptions documentation you will find detailed tutorials and guides to setup a subscription product.
Your products will show like this (your theme might change the graphics):
To enable recurring payments:
- You must choose one of Gestpay Professional iFrame or On-Site.
Store Tokenscheckbox must be selected
3D Securecheckobx must not be selected. If 3D secure is enabled, the payment will block waiting for the user PIN. Contact Gestpay Customer support to disable 3D Secure verification.
Once the payment is performed, you’ll see the recurring payments in WooCommerce -> Orders page:
To test subscriptions, please refer to WooCommerce Subscriptions docs.
Be aware that a recurrent transaction can fail, for example if the card is elapsed or if the aviable amount on the card is negative; when this occours, the subscription stops and the buyer must pay manually from his account page. To automatically retry failed payments, you can choose the option Retry Failed Payments from WooCommerce Subscriptions.
For more details about failed payments, checkout this page.
Refund - Settle - Delete
By clicking on the order number you the order details, plus a section with three buttons Refund, Settle, Delete (left bottom): their actions depend on your M.O.T.O. configuration. Let’s see this in action.
- Refund: When a transaction is already settled, you can refund it partially or totally by clicking this button. Clicking on it will show you a box like the following:
The button Refund X,XX€ manually is a default button and does not perform a real refund: with this button you are telling WooCommerce that you have already performed (or you will perform) a refund from Gestpay Backoffice.
Using Refund X,XX€ via Gestpay will perform the refund operation directly, using Gestpay APIs.
- Settle: if your MOTO configuration is set to separation of the authorization and the transaction process, after an order your transaction is only authorized; by clicking this button, you settle it.
- Delete: if your MOTO configuration is set to separation of the authorization and the transaction process, your transaction is authorized but not settled. By clicking this button you delete the authorized transaction.
At the right of the page you can also see a log of every action occurred to your transaction. This is extremely useful for debugging and to get a sense of what’s going on.
Activate Gestpay for WooCommerce
Once you have set up your plugin with the Gestpay account, move to WooCommerce > Settings and select the Checkout tab.
Here you’ll see the Gestpay menu enabled. Depending on the configured alternative payments, you might find other payment methods. For example, in the image below you’ll see Gestpay Pro PayPal.
Clicking on Gestpay, you can:
- Enable/disable the payment method
- Set a Title and a description (that will be shown to the user on checkout)
- Choose the icons that will be shown to the user.
Configuration for custom alternative payments enabled is similar.
Configure the Merchant Back Office
A merchant can configure the Merchant Back Office to receive requests from WooCommerce plugin. There are two environments available:
To request a test account, go to the registration page.
Gestpay will identify the merchant by comparing his IP address with the ones that are configured in the Merchant Back-Office. To insert your address or addresses, go to Configuration > Environment and click on IP Address.
Configure redirect addresses
Gestpay will notify the transaction status redirecting the browser to pages that are set up by the merchant (for example,
In Configuration > Environment click on Response Address and set the relevant data for customer care, fraud prevention, etc.
Then, set the Url for positive answer and the URL for negative answer. If your website address is
http://yoursite.com, you have to set
http://yoursite.com/?wc-api=WC_Gateway_Gestpay in both fields.
Note: it is very important that
is appended to your website address. With this code, the plugin will understand that the call is from Gestpay and will do decrypt the call. Then, the user is redirected to WooCommerce’s configured Order Received page.
Note: It is not necessary to populate the field URL Server to Server.