helloimdeadcat/magento2-xpay
Composer 安装命令:
composer require helloimdeadcat/magento2-xpay
包简介
XPAY payment gateway integration for Magento 2
README 文档
README
Magento 2 payment module for XPAY. After placing an order, the customer is redirected to the XPAY payment widget. Payment confirmation is handled via a REST callback.
Requirements
- PHP 8.1+
- Magento 2.4.x
- OpenSSL
Installation
Composer (recommended)
From your Magento 2 project root:
composer require helloimdeadcat/magento2-xpay:^1.0 bin/magento module:enable Stagem_Xpay bin/magento setup:upgrade bin/magento cache:flush
Note: The Magento module code namespace is
Stagem\Xpay(Stagem_Xpay). The Composer package name ishelloimdeadcat/magento2-xpay.
Composer (before Packagist registration)
If the package is not yet on Packagist, add the GitHub repository to your Magento root composer.json:
"repositories": { "magento2-xpay": { "type": "vcs", "url": "https://github.com/helloimdeadcat/magento2-xpay" } }
Then run composer require helloimdeadcat/magento2-xpay:^1.0 as above.
Manual
- Copy the module to
app/code/Stagem/Xpay - Run:
bin/magento module:enable Stagem_Xpay bin/magento setup:upgrade bin/magento cache:flush
Configuration
Go to Stores → Configuration → Sales → Payment Methods → Xpay and configure:
| Field | Description |
|---|---|
| XPAY API URL | API base URL (default: https://mapi.xpay.com.ua) |
| Xpay public key | Partner public key provided by XPAY |
| Partner ID | Partner ID provided by XPAY |
| User identified by | Identify the customer by email or phone number |
| Return URL | Success page path (default: xpay/payment/success) |
How it works
- The customer selects XPAY at checkout and places the order.
- Magento redirects to
xpay/payment/checkout?order={id}. - The module builds the XPAY widget URL and redirects the customer.
- XPAY sends a callback to
GET /rest/V1/xpay/process-pay. - The module validates the signature, creates an invoice, and sends the invoice email.
- The customer is redirected back to the Magento success page.
Logging
Module events are written to var/log/xpay.log.
Changelog
See CHANGELOG.md.
License
MIT — see LICENSE.txt.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-11