coinbar / coinbar-pay-m2-plg
CoinbarPay Magento 2 插件
1.0.5
2023-08-09 10:43 UTC
Requires
- php: >=7.4
- ext-json: *
- coinbar/coinbar-pay-php-sdk: ^1.0.0
README
先决条件
- 一个有效的 Magento 2.4.x 安装 - 建议使用官方支持版本(例如,非已停售版本)
- 您的 Magento composer 仓库密钥 - 通过在 https://commercemarketplace.adobe.com/ 上登录您的账户获取。
- 您的 Coinbar Pay 凭证(服务客户端 ID、API 密钥、密钥)
安装
将仓库添加到 composer.json
文件中
将以下三个仓库添加到您的 Magento 2 安装目录的 composer.json
文件中(它位于安装根目录)。它们必须放在 repositories
部分
... "repositories": [ ... other repositories here, leave them and append a comma (,) ... then add the following: { "type": "git", "url": "https://github.com/adamantic-io/coinbar-pay-php-sdk" }, { "type": "git", "url": "https://github.com/adamantic-io/crypto-payments-php" }, { "type": "git", "url": "https://github.com/adamantic-io/coinbar-pay-m2-plg.git" } ]
暂且修改以下 composer json 数据
"minimum-stability": "dev",
"prefer-stable": false,
"repositories": [
通过 Composer 安装插件
在 Magento 2 安装目录中打开终端,并执行以下命令
composer require coinbar/coinbar-pay-m2-plg/
php bin/magento setup:upgrade
php bin/magento setup:di:compile
配置插件
打开 Magento 2 管理界面,转到 商店 -> 配置 -> 销售 -> 支付方式
。您将找到一个名为 Coinbar Pay
的新支付方式(通常在底部);选择它并输入所需的数据
- 服务客户端 ID
- Coinbar Pay API 密钥
- Coinbar Pay 密钥
同时,确保支付方式已启用(选项 启用 = 是
)。然后保存配置并清除缓存。
这样就完成了 - 您现在应该可以在 Magento 2 结账时使用 Coinbar Pay。
许可
此插件根据 LGPL 许可发布 - 版本 3。有关详细信息,请参阅LICENSE 文件。