https://github.com/cloudipsp/ipsp-php
PHP SDK
https://github.com/cloudipsp/ipsp-php
Last synced: about 2 months ago
JSON representation
PHP SDK
- Host: GitHub
- URL: https://github.com/cloudipsp/ipsp-php
- Owner: cloudipsp
- Created: 2015-10-29T15:57:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-25T16:08:07.000Z (over 7 years ago)
- Last Synced: 2025-03-25T12:51:17.713Z (2 months ago)
- Language: PHP
- Size: 32.2 KB
- Stars: 6
- Watchers: 5
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IPSP (PHP) SDK
## Payment service provider
A payment service provider (PSP) offers shops online services for accepting electronic payments by a variety of payment methods including credit card, bank-based payments such as direct debit, bank transfer, and real-time bank transfer based on online banking. Typically, they use a software as a service model and form a single payment gateway for their clients (merchants) to multiple payment methods.
[read more](https://en.wikipedia.org/wiki/Payment_service_provider)## Installation
```cmd
git clone [email protected]:cloudipsp/ipsp-php.git
```
## Quick Start```php
call('checkout',array(
'order_id' => $order_id,
'order_desc' => 'Short Order Description',
'currency' => $ipsp::USD ,
'amount' => 2000, // 20 USD
'response_url'=> sprintf('http://shop.example.com/checkout/%s',$order_id)
))->getResponse();
// redirect to checkoutpage
header(sprintf('Location: %s',$data->checkout_url));
```## API Methods
### Accept purchase (hosted payment page)
```php
$data = $ipsp->call('checkout',array());
```
### Accept purchase (merchant payment page)
```php
$data = $ipsp->call('pcidss',array());
```
### Purchase using card token
```php
$data = $ipsp->call('recurring',array());
```
### Payment report
```php
$data = $ipsp->call('reports',array());
```
### Order Refund
```php
$data = $ipsp->call('reverse',array());
```
### Check payment status
```php
$data = $ipsp->call('status',array());
```
### Card verification
```php
$data = $ipsp->call('verification',array());
```
### Order capture
```php
$data = $ipsp->call('capture',array());
```
### P2P card credit
```php
$data = $ipsp->call('p2pcredit',array());
```## Examples
Checkout ipsp examples https://github.com/kosatyi/ipsp-php-examples.git