> For the complete documentation index, see [llms.txt](https://useepay.gitbook.io/useepay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://useepay.gitbook.io/useepay/plugins/magento.md).

# Magento

## 插件

### magento

{% file src="/files/KLtsDz1LnwQSkJ6bV3Em" %}
magento2 信用卡
{% endfile %}

{% file src="/files/Pnm9bcrBkLt5bbhLpCq6" %}
magento1 信用卡
{% endfile %}

{% file src="/files/DZvutpr0T36PcVCUXhlM" %}
magento2支付宝插件
{% endfile %}

{% file src="/files/XPkOJJihTqExIVjvJmbr" %}
magento2微信插件
{% endfile %}

{% file src="/files/wNozYY08xez4PYqKg3B9" %}
magento2 谷歌插件
{% endfile %}

{% file src="/files/T6CsxMP6QVIqUdM7pzdd" %}
magento2  苹果插件
{% endfile %}

{% file src="/files/laUHAwhGrVVyl6cx5yOO" %}
magento2 Afterpay插件
{% endfile %}

## 解压 Megento插件

注意：不同版本压缩插件不一样，请下载正确版本插件

1\. 把压缩包解压到 app/code 目录

2\. 运行命令:

php bin/magento module:enable --clear-static-content UseePay\_Payments

3\. 运行命令:

php bin/magento setup:upgrade

4\. 运行命令:

php bin/magento setup:di:compile

## 安装UseePay插件

登录Magento店铺后台以后，选择左侧的**STORES->Configuration->SALES->Payment Methods->UseePay**

![](/files/-MhOAtZkRoZKnaGwT2FV)

![](/files/-MhOAtZlc9cHBDwvAAe-)

![](/files/-MhOAtZmJ2p_akxRrjT6)

打开**UseePay**后填充下列信息，

**Enabled**用来选择是否开启**UseePay信用卡支付**；

**Title**为展示在网站上的名称，建议填写Credit/Debit Card；

**App Id**为提交审核并通过的网站域名；

**Merchant No.**&#x548C;**MD5 Sign Key**可以在UseePay的MC后台查看；

**Payment Environment**中Production 为生产环境，Sandbox 为沙盒环境, **正式交易**需要选 Production；

![](/files/-MhOAtZnfXbGgC6fiR8V)

信息填写完成后需要提供**网站的服务器IP地址**给到UseePay的运营同事，IP地址白名单添加完成后即可进行测试交易，测试交易完成后即可开始收款。

## **获取商户号与MD5密钥**

**获取商户号**

登录 UseePay 商户后台, 在账号管理页面查看商户号

![](/files/-MhOAtZoRqwmg_SMOLUg)

**获取MD5密钥**

登录 UseePay 商户后台，点击左侧配置中心菜单，然后选中密钥管理

![](/files/-MhOAtZpna1znV-ua7Ec)
