thelia / beanstream-module
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 1
Open Issues: 0
Type:thelia-module
Requires
- thelia/installer: ~1.1
This package is auto-updated.
Last update: 2024-10-14 22:32:59 UTC
README
This module integrate the payment gateway Beanstream. For now only the card purchase is developed.
Installation
Manually
- Copy the module into
<thelia_root>/local/modules/
directory and be sure that the name of the module isBeanstreamModule
. - Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
composer require thelia/beanstream-module:~1.0
Usage
Once activated, click on the configure button. Fill the form with your credentials. Add the minimum and maximum amount authorized by Beanstream. If you don't know this amount, ask to Beanstream.
Hooks
order-payment-gateway.body
Used for displaying the card information form. Here you customer will enter his credit card credentials like the card number, expiration date, etc.
order-edit.cart-bottom
In the back-office for displaying information if the payment failed. You will see the code and message error. See the documentation for a better explanation of this error : http://support.beanstream.com/docs/response-message-codes-descriptions.htm
Loop
beanstream-payment
Input arguments
Output arguments
Example
{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}