businessprocess / payhub-sdk
Sdk for payhub
Installs: 3 340
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- businessprocess/geo-service-sdk: ^1.3.0
- businessprocess/oidc-auth: ^1.0.0
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- laravel/framework: ^9.0
- laravel/pint: ^1.1
- phpunit/phpunit: ^9.3.3
- dev-main
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.3.1
- v1.3.0
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
This package is auto-updated.
Last update: 2025-01-24 08:43:06 UTC
README
Payhub SDK is a PSR-compatible PHP package for working with payhub api.
Installation
The recommended way to install Payhub SDK is through Composer.
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of Guzzle:
composer require businessprocess/payhub-sdk
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
You can then later update Guzzle using composer:
composer update
Usage
$client = new \Payhub\Service\Payhub([ 'url' => '', # Project url 'token' => Oidc::serviceToken(), # Api token ]); $order = \Payhub\Models\Order::make([ 'type' => 1, 'callback_url' => 'https://your-callback.url', ... ]); $response = $client->create($order); echo $response->all(); # '[{"link": ...}'
Usage Laravel
$order = \Payhub\Models\Order::make([ 'type' => 1, 'callback_url' => 'https://your-callback.url', ... ]); $response = \Payhub\Facade\Payhub::create($order); echo $response->all(); # '[{"link": ...}'