thelia / beanstream-module
1.0
2015-04-16 09:18 UTC
Requires
- thelia/installer: ~1.1
This package is auto-updated.
Last update: 2024-09-14 22:21:37 UTC
README
此模块集成了支付网关 Beanstream。目前仅开发了卡支付。
安装
手动
- 将模块复制到
<thelia_root>/local/modules/
目录,并确保模块的名称为BeanstreamModule
。 - 在thelia管理面板中激活它
Composer
将其添加到主thelia composer.json文件中
composer require thelia/beanstream-module:~1.0
使用方法
激活后,点击配置按钮。填写表单中的凭证。添加Beanstream授权的最小和最大金额。如果您不知道这个金额,请向Beanstream咨询。
钩子
order-payment-gateway.body
用于显示卡信息表单。在这里,您的客户将输入他的信用卡凭证,如卡号、到期日期等。
order-edit.cart-bottom
在后台办公室中显示支付失败的信息。您将看到错误代码和消息。请参阅文档以获取对该错误的更好解释:[http://support.beanstream.com/docs/response-message-codes-descriptions.htm](http://support.beanstream.com/docs/response-message-codes-descriptions.htm)
循环
beanstream-payment
输入参数
输出参数
示例
{loop name="beanstream" type="beanstream-payment" order_id=$order_id}
<div class="table-responsive">
<table class="table table-striped table-condensed table-left-aligned">
<caption class="clearfix">
{intl l='Beanstream information' d="beanstreammodule"}
</caption>
<tbody>
<tr>
<th>{intl l='Error code' d="beanstreammodule"}</th>
<td>{$MESSAGE_ID}</td>
</tr>
<tr>
<th>{intl l='Error message' d="beanstreammodule"}</th>
<td>{$MESSAGE}</td>
</tr>
</tbody>
</table>
</div>
{/loop}