comgate-client

Comgate client wrapper

MIT License

Downloads
18K
Stars
5

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

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', '[email protected]', 'Product name');

$createPaymentResponse = $client->send($createPayment);

$redirectUrl = $createPaymentResponse->getRedirectUrl();

CreatePayment class has the same props as described in Comgate documentation

Package Rankings
Top 11.47% on Packagist.org
Badges
Extracted from project README
Build Status Coverage Status
Related Projects