- PHP 5.6 or above
- curl, json and openssl extensions
Install Composer if not already installed.
Install this SDK by executing composer require pokepay/partner-php-sdk
on your shell.
$ composer require pokepay/partner-php-sdk
Client credentials have to be set before attempting API requests. Pokepay\PartnerAPI
takes the location of a configuration INI file as an argument.
$client = new Pokepay\PartnerAPI('./config.ini');
If it's not given, the file location is set from an environment variable POKEPAY_PARTNER_CONFIG_FILE
.
$ POKEPAY_PARTNER_CONFIG_FILE=/path/to/config.ini ./vendor/phpunit/phpunit/phpunit
See docs/.
Copyright (c) 2019 Pocket Change, Inc.