vladimir-yuldashev/creditpilot

This package is abandoned and no longer maintained. No replacement package was suggested.

CreditPilot PHP library

v1.0.11 2017-04-17 08:41 UTC

This package is not auto-updated.

Last update: 2019-02-20 20:57:49 UTC


README

This is a library for CreditPilot service.

How to use (simple example)

require_once 'vendor/autoload.php';

use CreditPilot\ResultCode;

$gateway = new \CreditPilot\Gateway(
    'test_gateway_url',
    'login',
    'password',
    []
);

$response = $gateway->prepare(time(), '712698259', '9631234567', 100);

if($response->canPay()) {

	$response = $gateway->pay(time(), '712698259', '9631234567', 100);
	
	if($response->succeed()) {
	
		$billNumber = $response->billNumber();
		
		$response = $gateway->findPay($billNumber);
		
		echo ResultCode::message($response->resultCode())
	
	}

}

Unit tests (PHPUnit)

Will be provided soon. I promise.

Contribution

Feel free to make pull requests.