paydock/paydock_php_sdk

The Paydock php SDK provides a php friendly wrapper around the Paydock API.

1.0.9 2020-10-19 13:19 UTC

This package is not auto-updated.

Last update: 2020-10-19 13:27:25 UTC


README

This SDK provides a wrapper around the PayDock REST API.

For more info on the Paydock API, see our full documentation.

Getting the SDK

The SDK is available through composer, or pull it down from github directly.

Simple example to create a single charge

Config::initialise("sandbox", "secret_key", "public_key");

$svc = new Charges();
$response = $svc->create(100, "AUD")
    ->withCreditCard("58377235377aea03343240cc", "4111111111111111", "2020", "10", "Test Name", "123")
    ->call();