概述
Magento是一套专业开源的电子商务系统。Magento设计得非常灵活,具有模块化架构体系和功能。易于与第3方应用系统无缝集成。其面向企业级应用,可处理各方面的需求,以及建设一个多种用途和适用面的电子商务网站。
安装
2.0以上版本
- 将Github下载的文件覆盖到magento网站根目录;
- 在网站根目录下运行 php bin/magento setup:upgrade,等待加载完成所有的模块;
- 清除后台缓存System->Cache Management;
- 进入配置Stores-> Configuration-> Sales->Payment Methods。
2.0以下版本
- 将Github下载的文件覆盖到magento网站根目录;
- 将文件夹‘op_xx’复制到网站正在使用的模板路径中,例如:app\design\frontend\正在使用的模板名\default\template\op_xx。
- 文件夹images复制到正在使用的模板路径中,例如:skin\frontend\正在使用的模板名\default\images。
- 清除magento后台缓存;
- 进入配置System-> Configuration-> Payment Methods。
配置
| 配置 | 选项 |
|---|---|
| Enable | Yes |
| Title | Your payment method. |
| Account | Provide by Oceanpayment technical support. |
| Terminal | Provide by Oceanpayment technical support. |
| SecureCode | Provide by Oceanpayment technical support. |
| Gataway URL | • Production environment: https://secure.oceanpayment.com/gateway/service/pay • Sandbox environment: https://test-secure.oceanpayment.com/gateway/service/pay |
| Pay Mode | • Redirect: Redirect to open payment page • Iframe: iframe payment page. |
| New Order Status | On Hold |
| Approved Order Status | Processing |
| Failure Order Status | Canceled |
| Pending Order Status | Pending |
| Invoice When Complete | Yes |
| Payment from Applicable Countries | All Allowed Countries |