Smart2Pay Magento Plugin: connects your Magento store to GlobalPay, the latest payment platform of Smart2Pay. Below you will find the necessary details for Magento websites administrators on how to install and configure the plugin on your Magento store.
Magento Plugin Version and Compatibility List
Smart2Pay plugin is compatible with the following Magento versions:
Compatible with Open Source (CE) : 2.3;
Compatible with Commerce on prem (EE) : 2.2 2.3;
Compatible with Commerce on Cloud (ECE) : 2.2 188.8.131.52b.
Smart2Pay Magento Plugin Installation
Thank you for choosing Smart2Pay extension for your Magento® store. The steps necessary for installing the Magento® 2 Plugin are described next. You can download the archive from GitHub.
Install the plugin using Composer:
Run the following composer command in the root of magento from your ssh console: composer require smart2pay/magento2;
Enable the extension in the command line in the root of Magento by executing bin/magento module: enable Smart2Pay_GlobalPay;
Update Magento to execute the install and update scripts in the command line in the root of magento by executing:
In your Magento backend, go to System > Cache Management and click the Flush Cache Storage button;
It is recommended to log out, and the log in again if you are already logged in to your Magento backend.
Smart2Pay Magento Plugin Configuration
The configurations for the Smart2Pay Magento plugin can be found in the administration area of Magento under ‘Stores’ -> ‘Configuration’ -> ‘Sales’ -> ‘Payment Methods’ -> ‘Smart2Pay.
Note: If the Smart2Pay Payment Module is not visible, please make sure that the module output is enabled from: ‘System‘ -> ‘Web Setup Wizard‘ -> ‘Module Manager‘.
Checkout below the available options of configuration for the Smart2Pay Magento plugin:
Smart2Pay Payment Module Configuration
Defines whether the Smart2Pay payment module is active or not. If it is active it will appear in the list of payment methods.
You can insert a custom title for the payment module. This will be displayed to the customers in the checkout process when selecting from possible payment methods.
The environment to which the plugin points to. If Test is selected then the Return URL and API Key (Test) will be used when making the payment. If Demo environment is selected, shop will create transactions on a predefined SiteID and API Key combination, just so that you can see an end-to-end transaction flow. This will not require any registration on your behalf on our test or live platforms. However, keep in mind that your shop will not receive background notifications about order updates so not all details and functionality for an order will be available / visible.
[Test, Demo, Live]
Site ID (TEST)
If you are managing multiple stores you can use a separate SiteID for each website, with different Signature, ReturnURL and NotificationURL. Please contact firstname.lastname@example.org for more details on how to setup a multistore configuration.
The secret authentication token used for communicating with our system for live environment. You can set up your API Key for production environment at: https://dashboardtest.smart2pay.com at Configuration Tab -> REST API -> Generate new API key.
An URL where the customer will be redirected after the payment process ends. It is advisable to include the path to the smart2pay/feedback action which displays a friendly message to the user depending on the redirection status of the transaction. This field is filled automatically by plugin at install time. If, however, this URL doesn’t work for you, you can manually correct it in a similar way which is presented in Sample column.
Specify the skin ID. The skins can be created in the Online Skin Editor available in the Merchant Dashboard or by uploading a CSS file.
Sort order will change order of all Smart2Pay payment methods.
Methods Display Settings
Methods display mode
By default, method icon images will be shown (Logo and Text). You have the option to display the payment methods as text or as logo and text.
Logo and Text
Display method description
By default, methods will be displayed having payment method’s logo and description. When set to yes, description will be displayed.
Send order number as product description
If set to ‘Yes’, the Magento order number will be sent as description. If ‘No’ is selected, the below custom description will be sent.
Custom product description
Specifies a global description that will be sent for all the transactions.
Custom product description
Notify customer by email
If set to ‘Yes’, the system automatically sends a confirmation email to the customer on success payment notification.
Payment Confirmation Template
The template of the e-mail
Send payment instructions on order creation
For Bank Transfer and Multibanco SIBS, Magento can send a confirmation email to the customer on order creation with payment details.
The template of the e-mail containing payment instructions for Multibanco SIBS (PT) payment method.
Payment Instructions (SIBS)
Payment Instructions Template (for Bank Transfer)
The template of the e-mail containing payment instructions for Bank Transfer payment method.
Payment Instructions (Bank Transfer)
Order Related Settings
Create invoice on success
If set to ‘Yes’, the system automatically creates an invoice if payment is successfully completed. The invoice is automatically set to ‘paid’.
New Order status
The status of the order after creation.
Smart2Pay New Order
Order status on SUCCESS
You should only deliver the goods/services based on the Success notifications. The notifications are received at the notification URL which you set up in the GlobalPay merchant dashboard available at: https://dashboardtest.smart2pay.com. You should only deliver the goods/services based on the Success notifications. The notifications are received at the notification URL which you set up in the GlobalPay merchant dashboard available at: https://dashboardtest.smart2pay.com. The notification URL is in the form: http://www.merchant.com/index.php/globalpay/index/handleResponse. Magento Smart2Pay_GlobalPay Plugin automatically updates the order status according to the received notifications. This configuration defines the status of the order when the payment has been successfully completed and a ‘success’ notification is sent by the GlobalPay system. You can release the goods/services in this case.
Order status on CANCEL
The status of the order when a ‘canceled’ notification is sent by GlobalPay system.
Order status on FAIL
The status of the order when a ‘failed’ notification is sent by GlobalPay system.
Order status on EXPIRED
The status of the order when an ‘expired’ notification is sent by GlobalPay system.
Payment Flow Settings
Skip payment page
If set to ‘Yes’, if all the necessary parameters are sent in the initial POST for a specific payment method, the GlobalPay payment page is skipped and the customer is redirected automatically to the payment method provider.
Thank you, the transaction was processed successfully. After we receive the final confirmation, we will release the goods.
The message that is displayed at the end of the payment flow when the customer is redirected with a failed status.
There was a problem processing your payment. Please try again.
The message that is displayed at the end of the payment flow when the customer has canceled the payment.
You have canceled the payment.
The message that is displayed to the customer when the redirection status is unknown or the customer must take additional actions to complete the payment: e.g. go to the bank and make an offline bank transfer.
Thank you, the transaction is pending. After we receive the final confirmation, we will release the goods.
After the main configuration of the Smart2Pay Payment Module, please activate the payment methods that you plan to use.
Smart2Pay Magento Payment Flow
The customer adds the product in the shopping cart and Proceeds to checkout.
In the Shipping area the customer needs to enter a valid email address that will be used for order confirmation. Also, the customer needs to provide a delivery address. The mandatory fields are marked with an asterisk sign. The customer can create an account after the checkout.
After choosing a delivery address, the customer has to select a shipping method.
Depending on the billing country of the customer, the activated methods are shown in the checkout process in the Payment step, Smart2Pay Methods section. After choosing the payment method, the customer can click Place the Order button.
After selecting the preferred payment method the customer needs to confirm the order by clicking on the Place the Order button.
After order confirmation the customer is redirected to the chosen payment method provider where he enters the necessary details of the payment.
The customer is redirected to the provider’s confirmation page where he needs to click on the Confirm payment button.
Upon completion of the payment flow, the customer is redirected back to your website.
Magento Payment Status Notification
After receiving the final confirmation from the provider, our server notifies Magento about the status change. The plugin handles these notifications and updates the order accordingly. This can be checked in Magneto backend in the Orders area.