<?php

require_once __DIR__ . '/../../AvangateJsonrpcClient.php';
use AvangateJsonrpcClient as Client;
/**
 * Initialize client
 */
Client::setBaseUrl('https://api.avangate.com/rpc/3.0/');
Client::setCredentials('APITEST', 'SECRET_KEY');
/**
 * Prepare call
 */
$AvangateCustomerReference = 435384557;
$customerObject = Client::getCustomerInformation($AvangateCustomerReference);
echo json_encode($customerObject, JSON_PRETTY_PRINT);
// output:
// {
//     "AvangateCustomerReference": "435384557",
//     "ExternalCustomerReference": null,
//     "FirstName": "John",
//     "LastName": "Jsonrpc",
//     "Company": "A",
//     "FiscalCode": "12345",
//     "Address1": "DP10A",
//     "Address2": "CBP, b3",
//     "City": "Atlanta",
//     "State": "Georgia",
//     "Zip": "123456",
//     "CountryCode": "us",
//     "Phone": "021-000-222",
//     "Fax": "021-000-000",