PHP code example of v.chetkov / cloud-payments

1. Go to this page and download the library: Download v.chetkov/cloud-payments 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/ */

    

v.chetkov / cloud-payments example snippets



$config = new Chetkov\CloudPayments\Config(
    'user',
    'password'
);


$cloudPayments = Chetkov\CloudPayments\CloudPaymentsFactory::create($config);


$subscriptionFindRequest = new Chetkov\CloudPayments\Request\Subscription\Find('[email protected]');


$response = $cloudPayments->subscriptionsFind($subscriptionFindRequest);


if (!$response->isSuccess()) {
    throw new RuntimeException($response->getMessage());
}

$model = $response->getModel();
//do something