helloimdeadcat/magento2-xpay 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

helloimdeadcat/magento2-xpay

Composer 安装命令:

composer require helloimdeadcat/magento2-xpay

包简介

XPAY payment gateway integration for Magento 2

README 文档

README

Packagist Version Packagist Downloads License: MIT

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 is helloimdeadcat/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

  1. Copy the module to app/code/Stagem/Xpay
  2. 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

  1. The customer selects XPAY at checkout and places the order.
  2. Magento redirects to xpay/payment/checkout?order={id}.
  3. The module builds the XPAY widget URL and redirects the customer.
  4. XPAY sends a callback to GET /rest/V1/xpay/process-pay.
  5. The module validates the signature, creates an invoice, and sends the invoice email.
  6. 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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固