Hutko - Ukrainian payment service that is destroying business forward Start working with payment more efficiently - it is necessary and you can find more in one event. This is the very best assistant who already knows what you need.
This SDK uses composer.
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
For more information on how to use/install composer, please visit https://github.com/composer/composer
composer require hutko-service/php-sdk
git clone -b master https://github.com/hutko-service/php-sdk.git
<?php
require '/path-to-sdk/autoload.php';
require 'vendor/autoload.php';
\Hutko\Configuration::setMerchantId(1700002);
\Hutko\Configuration::setSecretKey('test');
$checkoutData = [
'currency' => 'UAH',
'amount' => 1000
];
$data = \Hutko\Checkout::url($data);
$url = $data->getUrl();
//$data->toCheckout() - redirect to checkout
See docs
To check it you can use build-in php server
cd ~/php-sdk
php -S localhost:8000
D.M.