1. Go to this page and download the library: Download devscast/flexpay library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devscast / flexpay example snippets
use Ngandu\Flexpay\Client as Flexpay;
use Ngandu\Flexpay\Credential;
use Ngandu\Flexpay\Environment;
$flexpay = new Flexpay(
new Credential('token', 'merchant_code'),
Environment::SANDBOX // use Environment::LIVE for production
);