PHP code example of upgplc / php-clientlibrary

1. Go to this page and download the library: Download upgplc/php-clientlibrary 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/ */

    

upgplc / php-clientlibrary example snippets


$configData = array('merchantID' => 1, 'storeID' => 1);
$config = new Upg\Library\Config($configData);

$expiryMonth = 2
$expiryYear = 2020
$date = new \DateTime();
$date->setDate($expiryYear, $expiryMonth, 1);

$response->getData('resultCode');
$response->getData('allowedPaymentMethods');
 sh
    composer global