Skip to content

fsalomon/checkout-php-library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

PHP 5 > 5.3.0

How to use the library

Add the latest version of checkout-php-library {release/v{version number} into your project

###Example

Include the file autoload.php found in folder {release/v{version number}.

include 'release/v1.0/autoload.php';

You will be required to set the secret key when initialising a new **APIClient ** instance. You will also have option for other configurations defined in AppSettings.php file. The constructor available for configuration:

 __construct($secretKey, $env = 'sandbox' ,$debugMode = false, $connectTimeout = 60, $readTimeout =60)

By default both $connectTimeout and $readTimeouset to 60 seconds. You got option to change them as needed. $env accept either **sandbox **or **live ** as value. This parameter allow you to shift between the sandbox environment or live environment. By Default the sandbox environment will be used. ###Sample code for: Tokens

Charges

Cards

Customers

About

Checkout API PHP Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%