gopaywin / api-client
GoPayWin API PHP Client Bindings
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gopaywin/api-client
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2025-11-06 06:16:23 UTC
README
Installation
The GoPayWin API Client can be installed via Composer by requiring the
gopaywin/api-client package in your project's composer.json.
{
"require": {
"gopaywin/api-client": "0.2.*@dev"
}
}
Then run a composer update
php composer.phar update
Configuration
$configuration = new \GoPayWin\ApiClient\Configuration(); $configuration->load_from_array(array( 'endpoint' => \GoPayWin\ApiClient\Configuration::SANDBOX_ENDPOINT, 'private_key' => '...', 'publishable_key' => '...' ));
You can create custom configuration loaders by extending the \GoPayWin\ApiClient\Configuration class.
Usage
$request = new \GoPayWin\ApiClient\Request('/orders', $configuration); $response = $request->get();