This is an simple usage of the GLoballyPaid php-sdk and you can use on your own way with any PHP framework or any PHP application.
Download this example
Copy example from zip file into your web server document root
Change config.php
file with data from your GloballyPaid merchant account
//required config
$config['PublishableApiKey'] = 'PublishableApiKey_here';
$config['AppId'] = 'AppId_here';
$config['SharedSecret'] = 'SharedSecret_here';
$config['Sandbox'] = true;
//optional config
//$config['ApiVersion'] = 'v1'; //default v1
//$config['RequestTimeout'] = 10; //default 30
Install latest version from Globally Paid PHP-SDK using composer
composer require globallypaid/php-sdk
Add autoloader in the example files index.php
and charge.php
require_once('vendor/autoload.php');