PHP code example of edge-payment-technologies / edge-php-sdk

1. Go to this page and download the library: Download edge-payment-technologies/edge-php-sdk 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/ */

    

edge-payment-technologies / edge-php-sdk example snippets


Edge\Auth::setApiKey('YOUR_API_KEY');

$create = Edge\Client::create('payment_demands', [] /*body can be placed here*/);

$get = Edge\Client::get('payment_demands', [] /*body can be placed here*/);

$update = Edge\Client::update('payment_demands', [] /*body can be placed here*/);

$delete = Edge\Client::delete('payment_demands', [] /*body can be placed here*/);

$response = Edge\Client::get('payment_demands');
$arrayResponse = $response->toArray();

try {
    $response = Edge\Client::get('payment_demands');
} catch (Edge\Exception $e) {
    echo 'Error: ' . $e->getMessage();
}

$alpha3 = Edge\Helpers::convertAlpha2ToAlpha3('US');