renat-magadiev / comgate-client
Comgate client wrapper
3.0
2025-09-10 07:33 UTC
Requires
- php: >=8.2
- guzzlehttp/guzzle: ^7.10
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2026-03-11 16:29:32 UTC
README
Comgate API client
Comgate API client wrapper
This package allow you to create payment using Comgate API and get redirect URL to your customers
Requirements
- PHP 7.0 or higher
- guzzlehttp/guzzle
Installation
$ composer require renat-magadiev/comgate-client
Basic usage
use Comgate\Client;
use Comgate\Request\CreatePayment;
$client = new Client('merchant', true, 'secret');
$createPayment = new CreatePayment(1000, 'orderId', 'test@test.cz', 'Product name');
$createPaymentResponse = $client->send($createPayment);
$redirectUrl = $createPaymentResponse->getRedirectUrl();
CreatePayment class has the same props as described in Comgate documentation