Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 20 days 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T08:25:30.000Z (5 months ago)
- Last Synced: 2024-12-17T01:21:51.914Z (23 days 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
[![Build Status](https://travis-ci.org/renat-magadiev/comgate-client.svg?branch=master)](https://travis-ci.org/renat-magadiev/comgate-client) [![Coverage Status](https://coveralls.io/repos/github/renat-magadiev/comgate-client/badge.svg?branch=master)](https://coveralls.io/github/renat-magadiev/comgate-client?branch=master)
# Comgate API client
Comgate API client wrapperThis 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', '[email protected]', '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)