Install the Magento module
Requirements
Section titled “Requirements”| Requirement | Value |
|---|---|
| Platform | Magento Open Source / Adobe Commerce 2.4.4 to 2.4.8, or Mage-OS 3.x |
| PHP | 8.1 to 8.4 |
| Currency | PEN (soles) |
| Magento cron | Required: the connector and expiry run every minute |
| Outbound HTTPS | The server must be able to reach the platform URL |
What you receive
Section titled “What you receive”Three modules, copied into app/code/PaginasWeb/:
| Module | What it does |
|---|---|
PaginasWeb_YapePayment |
Yape payment method, unique amount, 15-min expiry, approval |
PaginasWeb_YapeConnector |
Publishes orders to the platform and applies matches per your policy |
PaginasWeb_YapeLuma |
Checkout and success-page presentation for Luma, Martfury and Amasty |
Installation
Section titled “Installation”-
Copy the modules into your installation:
Ventana de terminal # from the Magento rootmkdir -p app/code/PaginasWebcp -r /delivered/path/YapePayment app/code/PaginasWeb/cp -r /delivered/path/YapeConnector app/code/PaginasWeb/cp -r /delivered/path/YapeLuma app/code/PaginasWeb/ -
Enable them:
Ventana de terminal bin/magento module:enable PaginasWeb_YapePayment PaginasWeb_YapeConnector PaginasWeb_YapeLuma -
Upgrade and deploy depending on your store’s mode:
Ventana de terminal bin/magento maintenance:enablebin/magento setup:upgradebin/magento setup:di:compilebin/magento setup:static-content:deploy -f es_PE en_USbin/magento cache:flushbin/magento maintenance:disableVentana de terminal bin/magento setup:upgradebin/magento cache:flush -
Make sure Magento cron runs every minute:
Ventana de terminal bin/magento cron:install # if not installed yetcrontab -l # the bin/magento cron:run line must be there -
Verify the installation:
Ventana de terminal bin/magento module:status | grep PaginasWeb_YapeThe admin must show Stores → Configuration → Sales → Payment Methods → Yape (Hotsale Detector) and Stores → Configuration → Sales → Yape Connector.
Scheduled jobs it adds
Section titled “Scheduled jobs it adds”| Job | Frequency | Purpose |
|---|---|---|
paginasweb_yape_expire_orders |
Every minute | Cancels unpaid Yape orders on expiry and releases their amount |
paginasweb_yape_connector_publish_orders |
Every minute | Publishes open orders and their changes to the platform |
paginasweb_yape_connector_sync_matches |
Every minute | Collects matches and applies them per your policy |
paginasweb_yape_connector_purge_data |
Daily (03:17) | Cleans up old connector data |
Next step
Section titled “Next step”- Configure the payment method.
- Configure the connector with your secret key.