PHP code example of cybersource / rest-client-php

1. Go to this page and download the library: Download cybersource/rest-client-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/ */

    

cybersource / rest-client-php example snippets


   // For TESTING use
   // $this->runEnv = "apitest.cybersource.com";
   // For PRODUCTION use
   $this->runEnv = "api.cybersource.com";
json
{
  "": ">=8.0.0", 
    "cybersource/rest-client-php": "0.0.50"
  }
}