The client library for PChomePay API.
add composer.json
{
"repositories": [
{
"url": "https://github.com/river0825/pcpay-api-client.git",
"type": "git"
}
],
"require": {
"pcpay/api-client":"dev-master"
},
"minimum-stability": "dev"
}
run composer
> composer install
<?php
include "./vendor/autoload.php";
//for session token storage
sessoin_start();
$client = new \PCPayClient\Client\PPApiClient($userId, $pass, null, false, true);
$r = $client->getTokenObj();
var_dump($r);