Magento is a web platform that allows content management for online stores, offering a flexible and scalable solution on which any eCommerce can be built.
The Openpay plugin for Magento enables you to use our supported payment methods (credit card, stores and wire transfers) within the shopping flow of your eCommerce.
Supported versions
Magento Community Edition 2.1.1 or greater
Requirements
It is required for the server that hosts your Magento 2 store to fulfill the following:
PHP v5.4 or greater.
MySQL v5.0 or greater.
Have a certificado SSL for your eCommerce, in case you wish to accept credit card payments.
Installation
For the installation of extensions in Magento 2 is necessary to execute some commands in the server terminal where our platform is hosted.
To implement the three payment methods in your store, it is necessary to install and enable each one separately.
1) Start the terminal application and navigate to your Magento 2 root folder.
2) Execute the commands to install each of the modules:
Credit card payment module
Store payment module
SPEI payment module
3) Enable the modules, update and clear cache of the platform to complete the installation process.
On your Openpay admin panel, identify the API credentials assigned to your merchant account.
Find the credentials by clicking the cog icon on the upper right corner of the screen, then select Credenciales de API.
On your Magento 2 admin panel, go to Stores -> Configuration.
Click on the Sales -> Payment Methods link, on the lateral menu.
Fill the Openpay section.
General settings
Habilitado (Enabled).- Enables or disables Openpay as the payment platform for your eCommerce.
Sandbox.- Determines whether the plugin is working on a testing environment (Sandbox) or productive environment.
Título (Title).- Name of the payment method displayed in the store.
Openpay credentials (Merchant ID, Secret Key, Public Key).- API credentials to use (whether you are on Sandbox or Productive environments). Copy and paste each value (check step 1) accordingly.
País (Country).- Select country (Mexico, Colombia).
Card payments settings
¿Cómo procesar el cargo? (How to process the charge?).- Defines the type of charge to be made:
Direct: An evaluation of the charge will be carried out and it will be rejected if the anti-fraud system detected any anomaly.
3D Secure: A redirect to the bank will be carried out so that the client is authenticated in his bank.
Selective authentication: An evaluation of the charge will be carried out and if the anti-fraud system detects any anomaly, a 3D secure charge will be executed.
Configuración del cargo (Charge settings).- Indicates whether the charge is made immediately or not.
Pago con puntos (Payment with points).- Receive point payments with BBVA, Santander and citibanamex.
Tipos de tarjetas (Credit card types).-The 3 types of cards must be selected to accept all types of cards allowed by Openpay.
Meses sin intereses (Months without interest).- You can enable or disable card payments to months without interest by selecting 3,6,9,12 or 18.
Configuración de países permitidos (Payment from applicable countries, payment from specific countries).- you can leave the default configuration or define only Mexico.
Orden (Sort order).- Order in which the payment method is shown.
Store payment settings
Fecha límite para pago (Payment deadline).- Define the hours on which your customer will be able to make a payment via Convenience Store.
Mostrar mapa (Show Map).- when the payment receipt is generated, a map will be displayed to show the closest stores.
Configuración de países permitidos (Payment from applicable countries, payment from specific countries).- you can leave the default configuration or define only Mexico.
Orden (Sort order).- Order in which the payment method is shown.
SPEI payment settings
Fecha límite para pago (Payment deadline).- Define the hours on which your customer will be able to make a payment via Wire Transfer.
Configuración de países permitidos (Payment from applicable countries, payment from specific countries).- you can leave the default configuration or define only Mexico.
Orden (Sort order).- Order in which the payment method is shown.
Save your changes by clicking Save Config, on the upper right corner of the screen.
Clear the cache via Admin Panel to complete the installation process.
Store and SPEI payment notifications
The plugin is prepared to receive payment notifications automatically, that is, without the need to configure your Openpay account or plugin. Notifications are sent to merchant when when a charge was made or when a payment reference was expired.
Important: The plugins assume that the store must reside in the root of the domain, so the webhook is created based on this url.
Webhook verification
It is necessary to verify that the Webhooks were created correctly in Openpay.
On your Openpay admin module, go to Options (cog icon) -> Settings.
Locate the Webhooks section. If the webhook was configured correctly there will be a record in Verified status.