PHP code example of cloudipsp / php-sdk-v2
1. Go to this page and download the library: Download cloudipsp/php-sdk-v2 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/ */
cloudipsp / php-sdk-v2 example snippets
\Cloudipsp\Configuration::setMerchantId(1396424);
\Cloudipsp\Configuration::setSecretKey('test');
$checkoutData = [
'currency' => 'USD',
'amount' => 1000
];
$data = \Cloudipsp\Checkout::url($data);
$url = $data->getUrl();
//$data->toCheckout() - redirect to checkout
cmd
composer
cmd
cd ~/php-sdk-v2
php -S localhost:8000