Download the PHP package clippings/omnipay-emp without Composer
On this page you can find all versions of the php package clippings/omnipay-emp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clippings/omnipay-emp
More information about clippings/omnipay-emp
Files in clippings/omnipay-emp
Package omnipay-emp
Short Description eMerchantPay library for Omnipay
License BSD-3-Clause
Informations about the package omnipay-emp
Omnipay: EMP
eMerchantPay driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements eMerchantPay support for Omnipay.
Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json
file:
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Basic Usage
The following gateways are provided by this package:
- eMerchantPay
For general usage instructions, please see the main Omnipay repository.
In order to use this gateway, you need to provide apiKey and clientId.
You can additionally configure Threatmatrix:
For a successful purchase you need to provide transactionReference
,currency
,clientIp
,card
anditems
:
All of the fields above are supported, and depending on your eMerchantPay configuration - required. Items with negative prices are also supported. The name of each item must be a unique identifier. This is used for refunds later.
A full refund example:
You can also do partial refunds by providing the items directly. This type of refund ignores "amount":
Where item "name" is the id, given by eMerchantPay in the data of the purchase response.
Support
If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.
If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
License
Copyright (c) 2014, Clippings Ltd. Developed by Ivan Kerin
Under BSD-3-Clause license, read LICENSE file.