PHP code example of saulmoralespa / tigo-money-api-php
1. Go to this page and download the library: Download saulmoralespa/tigo-money-api-php 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/ */
saulmoralespa / tigo-money-api-php example snippets
// ... please, add composer autoloader first
;
$clientId = getenv('API_KEY'); //Unique client identifier assigned during the registration process with Tigo Money
$clientSecret = getenv('API_SECRET'); //Secret password provided during the registration process with Tigo Money
$agentAccount = getenv('AGENT_ACCOUNT');
$agentPin = getenv('AGENT_PIN');
$agentName = getenv('AGENT_NAME');
$tigoMoney = new Client($clientId, $clientSecret, $agentAccount, $agentPin, $agentName);
$tigoMoney->sandboxMode(true); //true for tests, false for production