burnbright / omnipay-paystation
Paystation driver for the Omnipay payment processing library
Installs: 20 668
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- omnipay/common: ~3.0
Requires (Dev)
- omnipay/tests: ~3.0
- squizlabs/php_codesniffer: ^3.5
- symfony/psr-http-message-bridge: ~1.1.0
README
Paystation driver for the Omnipay PHP payment processing library
API Docs: https://docs.paystation.co.nz/
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.6+. This package implements Paystation support for Omnipay.
Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json
file:
{ "require": { "burnbright/omnipay-paystation": "~3.0" } }
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:
- Paystation_Hosted
For general omnipay usage instructions, please see the main Omnipay repository.
NOTE: Paystation's back-end system supports both IP whitelisting and HMAC key usage. Be aware of which features are enabled on the account you're using.
Testing card details, and error cent values, are detailed here: http://www.paystation.co.nz/Paystation-Test-Site
If you want to use dynamic return urls, you must set a HMAC key. This can be obtained from paystation.
$gateway->setHmacKey('1a2b3b3g3g3k3k23k23hj235h235');
Merchant Session Uniqueness
The required merchant session identifier is generated using php's
uniqid function.
This may not be enough uniqueness if your system architecture has
multiple hosts. You can override this by setting the merchantSession
omnipay parameter:
$response = $gateway->purchase(array( 'amount' => '123.00', 'currency' => 'NZD', 'card' => array(...), 'merchantSession' => uniqueid($hostidentifier) //here ))->send();
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.