PHP code example of asrorbek / cloudpayments-php-client

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

    

asrorbek / cloudpayments-php-client example snippets




use CloudPaymentsSDK\Client\CloudPayments;

.uz - CloudPayments::CLOUD_PAYMENTS_UZ_URL

$cloudPayments = new CloudPayments(publicKey: 'your_public_key', apiSecret: 'your_api_secret', apiUrl: CloudPayments::CLOUD_PAYMENTS_RU_URL, enableSSL: true);

$response = $cloudPayments->sendTestRequest(array(
    'Name' => 'Foo Baz',
));

print_r($response);


// Process the response as needed

bash
composer