https://github.com/renat-magadiev/comgate-client
Comgate client wrapper
https://github.com/renat-magadiev/comgate-client
client comgate payment php php7 platebni
Last synced: 10 months ago
JSON representation
Comgate client wrapper
- Host: GitHub
- URL: https://github.com/renat-magadiev/comgate-client
- Owner: renat-magadiev
- License: mit
- Created: 2017-12-02T17:09:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T08:25:30.000Z (almost 2 years ago)
- Last Synced: 2025-08-05T21:40:03.219Z (11 months ago)
- Topics: client, comgate, payment, php, php7, platebni
- Language: PHP
- Size: 34.2 KB
- Stars: 5
- Watchers: 2
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/renat-magadiev/comgate-client) [](https://coveralls.io/github/renat-magadiev/comgate-client?branch=master)
# 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](https://packagist.org/packages/guzzlehttp/guzzle)
Installation
------------
```sh
$ composer require renat-magadiev/comgate-client
```
Basic usage
------------
```php
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](https://platebnibrana.comgate.cz/cz/protokol-api#sidemenu-link-12)