Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kosatyi/ipsp-php
@ipsp-php
https://github.com/kosatyi/ipsp-php
Last synced: 2 months ago
JSON representation
@ipsp-php
- Host: GitHub
- URL: https://github.com/kosatyi/ipsp-php
- Owner: kosatyi
- License: mit
- Created: 2015-08-05T11:57:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-06T00:17:49.000Z (about 4 years ago)
- Last Synced: 2024-09-19T02:27:31.454Z (4 months ago)
- Language: PHP
- Homepage: https://kosatyi.com/ipsp-php/
- Size: 1.89 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# IPSP PHP SDK
Flexible software development kit that covers e-commerce for businesses of all types and support
popular CMS modules for fast integration in existing infrastructure.## Installation
### System Requirements
PHP 5.2 and later.
### Dependencies
SDK require the following extension in order to work properly:
- [`curl`](https://secure.php.net/manual/en/book.curl.php)
- [`json`](https://secure.php.net/manual/en/book.json.php)### Manual Installation
If you do not use Composer, you can download the
[latest release](https://github.com/kosatyi/ipsp-php/releases).
Or clone from GitHub the latest developer version
```cmd
git clone [email protected]:kosatyi/ipsp-php.git
```Then include autoload file in your project.
```php
call('checkout',array(
'order_id' => 'orderid-111222333',
'order_desc' => 'Simple checkout page',
'currency' => $ipsp::USD ,
'amount' => 2000, // 20 USD
'response_url'=> sprintf('http://shop.example.com/result.php')
))->getResponse();
// redirect to checkout page
$data->redirectToCheckout();
```## Handling response
Create page `result.php` with code below:
```php
call('result');
if( $result->validResponse() ){
exit(sprintf('%s',$result->getResponse()));
}
```## Follow project on:
- Facebook [/ipsp.sdk](https://facebook.com/ipsp.sdk/)
- Twitter [@ipspsdk](https://twitter.com/ipspsdk)## Author
Stepan Kosatyi, [email protected]
[![Stepan Kosatyi](https://img.shields.io/badge/stepan-kosatyi-purple.svg)](https://kosatyi.com/)