propultech / magento2-webpay-plus-mall-rest
Webpay Plus Mall integration for Magento 2
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:magento2-module
pkg:composer/propultech/magento2-webpay-plus-mall-rest
Requires
- php: ^8.1.0 || ^8.2.0 || ^8.3.0
- magento/framework: ^103.0.0
- propultech/magento2-core: *
- transbank/transbank-sdk: ~2.0
- transbank/webpay-magento2-rest: ^2.3
This package is auto-updated.
Last update: 2025-11-07 15:52:07 UTC
README
This module provides integration with Transbank's Webpay Plus Mall payment gateway for Magento 2. It allows customers to pay for orders using Webpay Plus Mall, which supports multiple commerce codes for different stores.
Features
- Integration with Transbank's Webpay Plus Mall payment gateway
- Support for multiple commerce codes
- Product attribute to differentiate products by commerce code
- Transaction details builder for creating mall transactions
- Automatic invoice generation (optional)
- Customizable order status handling
Requirements
- Magento 2.3.x or higher
- PHP 7.3 or higher
- Transbank SDK 2.0 or higher
- Transbank Webpay Magento 2 REST module
Installation
- Copy the module files to
app/code/Propultech/WebpayPlusMallRestin your Magento installation. - Enable the module:
bin/magento module:enable Propultech_WebpayPlusMallRest bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy
Configuration
- Go to Stores > Configuration > Sales > Payment Methods > Webpay Plus Mall.
- Configure the following settings:
- Enabled: Set to "Yes" to enable the payment method.
- Title: The title of the payment method shown to customers.
- Environment: Select "TEST" for testing or "PRODUCTION" for live transactions.
- Código de Comercio Mall: Your Webpay Plus Mall commerce code.
- API Key: Your Webpay Plus Mall API key.
- Códigos de Comercio de Tiendas: Enter the commerce codes for your stores in JSON format. Example:
[ { "store_code": "store1", "commerce_code": "597055555541" }, { "store_code": "store2", "commerce_code": "597055555542" } ] - Estado de Pago Exitoso: The order status for successful payments.
- Estado de Pago Erroneo: The order status for failed payments.
- Estado de Nueva Orden: The order status for new orders.
- Posición del plugin: The position of the payment method in the checkout.
- Comportamiento del Email: When to send order confirmation emails.
- Generar Invoice: Whether to automatically generate invoices for successful payments.
Product Configuration
- Edit a product and go to the General tab.
- Find the Webpay Mall Commerce Code field.
- Enter the commerce code to use for this product in Webpay Plus Mall transactions.
- If left empty, the first commerce code from the configuration will be used.
How It Works
- When a customer places an order using Webpay Plus Mall, the module creates a transaction with Transbank.
- The customer is redirected to Webpay's payment page to complete the payment.
- After payment, the customer is redirected back to the store.
- The module verifies the payment and updates the order status accordingly.
- If configured, an invoice is automatically generated for the order.
Transaction Details Builder
The module includes a transaction details builder that groups products by their associated commerce code and builds the transaction details array for Webpay Plus Mall. This allows for flexible handling of multiple commerce codes in a single transaction.
Support
For support, please contact the module developer or refer to the Transbank documentation: