ayvan/creditpilot

CreditPilot PHP library

Maintainers

Details

github.com/Ayvan/creditpilot

Source

Installs: 117

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 3

pkg:composer/ayvan/creditpilot

1.0.7 2015-11-06 10:15 UTC

This package is not auto-updated.

Last update: 2025-12-24 16:42:48 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.