Skip to content

hutko-service/php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hutko PHP-SDK-v2

Hutko payment service provider

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.

Installation

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 installation

composer require hutko-service/php-sdk

Manual installation

git clone -b master https://github.com/hutko-service/php-sdk.git
<?php
require '/path-to-sdk/autoload.php';

Simple Start

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

Api

See docs

Examples

To check it you can use build-in php server

cd ~/php-sdk
php -S localhost:8000

Checkout examples

Author

D.M.

About

Hutko service PHP SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages