GoPayWin API bindings for PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib/ApiClient
.gitignore
LICENSE
README.md
composer.json

README.md

GoPayWin API Bindings for PHP

@awsforphp on Twitter Latest Development Version

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();

Links