smart2pay / magento2
使用Smart2Pay模块,即可访问200多种支付方式。
Requires
README
在Magento 2.1.15, 2.2.5, 2.2.6和2.3.4上进行了测试。
Composer安装(推荐)
-
使用composer安装Smart2Pay Magento插件
composer require smart2pay/magento2
-
按照Magento设置部分的步骤进行。
-
登录到您的Magento商店的管理区域并配置插件。
手动安装说明
-
复制Smart2Pay插件文件
1.1. 压缩文件
从Smart2Pay Magento 2发布下载压缩文件,并将其解压到您的Magento 2服务器上的一个临时位置。
1.2. git clone
在您的Magento 2服务器上的一个临时目录中执行
git clone https://github.com/Smart2Pay/magento2
。 -
在 {Magento_root}/app/code 目录中创建 Smart2Pay/GlobalPay 目录。如果您在 {Magento_root}/app/ 中没有 code 目录,请先创建它。
-
将步骤1中创建的临时目录中的插件文件复制到 {Magento_root}/app/code/Smart2Pay/GlobalPay 目录。
-
为了检查文件是否已正确复制,请检查 {Magento_root}/app/code/Smart2Pay/GlobalPay 目录中是否存在 registration.php 文件。
-
在 {Magento_root} 目录中运行
composer require smart2pay/sdk-php
(不在模块目录中)。 -
完成Magento设置部分的步骤。
-
登录到您的Magento管理区域并配置插件。
如果您遇到任何版本的问题,请通过support@smart2pay.com告知我们您的Magento、Smart2Pay模块和Smart2Pay SDK版本。
Magento设置
-
在Magento 2根目录中打开shell。
-
为了确保插件已启用,请运行
bin/magento module:enable Smart2Pay_GlobalPay
。 -
运行以下命令
bin/magento setup:upgrade bin/magento setup:di:compile