thelia/moneris-module

安装: 21

依赖: 0

建议者: 0

安全性: 0

星标: 1

关注者: 7

分支: 0

开放问题: 0

类型:thelia-module

1.0 2015-04-28 14:09 UTC

This package is auto-updated.

Last update: 2024-09-14 22:16:19 UTC


README

Moneris 提供了一种将您的网站与 Moneris 商户账户连接起来的方法,并允许用户使用此解决方案进行安全支付。

安装

手动

  • 将模块复制到 <thelia_root>/local/modules/ 目录,并确保模块的名称为 Moneris。
  • 在 Thelia 管理面板中激活它。

Composer

将其添加到您的 Thelia 主要 composer.json 文件中

composer require thelia/moneris-module:~1.0

用法

一旦激活,点击插件的配置按钮,然后输入您的 Moneris 商户账户信息。如果您想自定义集成,可以在文档中查看如何操作

钩子

此插件钩子在两个前端位置显示信息

  • order-payment-gateway.body:在选择 Moneris 支付后显示银行卡表单
  • order-placed.body:交易完成后显示摘要

其他问题?

如果您需要实现地址验证服务 (AVS),请参考 IronKeith 的 Moneris API 改进https://github.com/ironkeith/moneris-eselectplus-api和 Moneris 开发者指南https://developer.moneris.com/

要测试插件是否可以与 Moneris 服务器通信:在后台插件配置中

  • 将“API令牌”设置为“yesguy”
  • 将“商店ID”设置为“store5”
  • 在前端选择 API 沙盒环境
  • 在您的 URL 中使用 index_dev.php 而不是 index.php
  • 使用 4761739012345678 作为卡号在 Moneris 测试环境(https://esqa.moneris.com/mpg/)下进行订单
  • 连接到 Moneris 测试商店,并使用提供的凭据(使用“store5”作为商店ID)
  • 在“报告”选项卡 -> “交易”子选项卡中检索您的测试

注意:您的交易不会在所有情况下获得批准,因为 Moneris 使用交易金额的便士值发送不同的响应(批准、拒绝等)。有关便士值响应的更多信息,请参阅 Moneris 开发者指南https://developer.moneris.com/