PHP code example of eo / keyclient
1. Go to this page and download the library: Download eo/keyclient 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/ */
eo / keyclient example snippets
use Eo\KeyClient\Client;
$client = new Client('YOUR-ALIAS', 'YOUR-SECRET');
$response = $client->parsePaymentResponse();
// $response is an instance of Eo\KeyClient\Payment\PaymentResponse
switch ($response->get('esito')) {
case 'OK':
# Payment success...
break;
case 'KO':
# Payment error...
break;
}
php composer.phar --dev install