galaxpay / galaxpay-magento2
Galax Pay Magento 2 模块
1.0.0
2021-11-23 13:53 UTC
This package is auto-updated.
Last update: 2024-09-15 00:33:48 UTC
README
Galax Pay - Magento 2
描述
Galax Pay 模块集成允许通过 Magento 2 透明地销售。支付方式:信用卡、支票和 Pix。(请注意,这些支付方式应在 Galax Pay 公司账户中激活)
要求
- PHP 7.x.x 或更高版本
- MySQL 5.6.x 或更高版本
- PHP 中启用 cURL
- SSL 证书
- 在 Galax Pay 上有活跃账户
- 不允许以访客身份购买。
- 为了使插件在标准的 Galax Pay 账户中正确运行,必须安装以下模块,如安装指南第 3 项所述。
- 应在账户中启用 webservice 模块。
安装
可以通过 .zip、通过 Git 或通过 Composer 来安装 Galax Pay Magento 2 模块。
推荐:通过 composer
- 转到 Magento 根目录并添加模块
composer require galaxpay/galaxpay-magento2
- 更新 Magento 可用模块
bin/magento setup:upgrade
- GalaxPay_Payment 模块应在 Magento 模块列表中显示
bin/magento module:status
- 启用 Galax Pay 模块
bin/magento module:enable GalaxPay_Payment
通过 git
- 转到 Magento 根目录并添加模块
git clone https://github.com/galaxpay/galaxpay-magento2.git app/code/GalaxPay/Payment/
- 更新 Magento 可用模块
bin/magento setup:upgrade
- GalaxPay_Payment 模块应在 Magento 模块列表中显示
bin/magento module:status
通过 .zip
- 在 Magento 的 app 文件夹内创建以下文件夹
code/GalaxPay/Payment
- 下载 [.zip]
- 路径应该是 app/code/GalaxPay/Payment
- 在 Payment 文件夹中解压 .zip 文件
- 在根目录下,更新 Magento 可用模块
bin/magento setup:upgrade
- GalaxPay_Payment 模块应在 Magento 模块列表中显示
bin/magento module:status
配置
- 在 Magento 中配置您的账户
- 在 Magento 管理面板中,访问 Galax Pay -> 配置
- 选择要使用的环境(沙箱或生产)
- 输入您的 Galax Pay 账户 ID
- 输入您的 Galax Pay API 令牌
- 您必须复制 Webhooks 配置链接,将其插入 Galax Pay 平台中的 webservice 模块。您还应在该模块中标记以接收 APIv2 的 "transaction.updateStatus" webhook。
- 在 Galax Pay 中输入 webhook URL 后,将生成一个 "Webhook 安全令牌",该令牌应用于在 Magento 配置中填写 Webhook 令牌字段。
- 在 Magento 管理面板中,访问 Galax Pay -> 配置
- 启用/配置支付方式
- 在 商店 -> 销售 -> 支付方式 中,配置并启用支付方式 Galax Pay - 信用卡、Galax Pay - 支票 和 Galax Pay - Pix
- 安装必需的附加模块
疑问
如需有关平台或API的信息,请通过以下渠道查询:https://docs.galaxpay.com.br/