https://github.com/ange007/omnipay-interkassa
"InterKassa" driver for the "Omnipay" PHP payment processing library. | Драйвер платёжного агрегатора "Интеркасса" для OmniPay.
https://github.com/ange007/omnipay-interkassa
gateway interkassa interkassa-driver omnipay omnipay-interkassa payment payment-gateway payment-module payments php php-library
Last synced: 2 months ago
JSON representation
"InterKassa" driver for the "Omnipay" PHP payment processing library. | Драйвер платёжного агрегатора "Интеркасса" для OmniPay.
- Host: GitHub
- URL: https://github.com/ange007/omnipay-interkassa
- Owner: ange007
- License: mit
- Created: 2017-03-19T13:33:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T14:14:37.000Z (about 8 years ago)
- Last Synced: 2024-12-18T13:48:04.458Z (4 months ago)
- Topics: gateway, interkassa, interkassa-driver, omnipay, omnipay-interkassa, payment, payment-gateway, payment-module, payments, php, php-library
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Omnipay: InterKassa
===================**InterKassa driver for the Omnipay PHP payment processing library**
[](https://packagist.org/packages/ange007/omnipay-interkassa)
[](https://packagist.org/packages/ange007/omnipay-interkassa)
[](https://scrutinizer-ci.com/g/ange007/omnipay-interkassa/build-status/master)
[](https://scrutinizer-ci.com/g/ange007/omnipay-interkassa/)
[](https://www.versioneye.com/user/projects/58ce8fadcef500003d13614c)[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment
processing library for PHP 5.3+.This package implements [InterKassa](http://interkassa.com/) support for Omnipay.
## Installation
The preferred way to install this library is through [composer](http://getcomposer.org/download/).
Either run
```sh
php composer.phar require "ange007/omnipay-interkassa"
```or add
```json
"ange007/omnipay-interkassa": "*"
```to the require section of your composer.json.
## Basic Usage
The following gateway is provided by this package:
* [InterKassa Shop Cart Interface](http://interkassa.com/)
For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay) repository.
## Example
```php
public function payResponse( $serviceID, $status, $data )
{
// Load Gateway
$gateway = Omnipay::gateway( $serviceID );// Read data
if( $status === 'notify' && $gateway->supportsAcceptNotification( ) ) { $request = $gateway->acceptNotification( $data ); }
else if( $gateway->supportsCompleteAuthorize( ) ) { $request = $gateway->completeAuthorize( $data ); }
else if( $gateway->supportsCompletePurchase( ) ) { $request = $gateway->completePurchase( $data ); }// Send request
try { $response = $request->send( ); }
catch( Exception $ex ) { }// Need wait server notification
if( $response->isPending( ) )
{
//...
}
// Paid successful
else if( $response->isSuccessful( ) )
{
$payID = $response->getTransactionId( );
//...
}
// Pay cancelled from user
else if( $request->isCancelled( ) )
{
//...
}
// Error or other
else
{
$message = $response->getMessage( );
//...
}
}
```## Support
If you are having general issues with Omnipay, we suggest posting on
[Stack Overflow](http://stackoverflow.com/). Be sure to add the
[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) 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](https://groups.google.com/forum/#!forum/omnipay) which
you can subscribe to.If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/ange007/omnipay-interkassa/issues),
or better yet, fork the library and submit a pull request.## License
This project is released under the terms of the MIT [license](LICENSE).
Read more [here](http://choosealicense.com/licenses/mit).Copyright © 2017, ange007 *(original author: HiQDev - [hiqdev/omnipay-interkassa](https://github.com/hiqdev/omnipay-interkassa))*.