Skip to content

renat-magadiev/comgate-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

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', 'test@test.cz', 'Product name');

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

$redirectUrl = $createPaymentResponse->getRedirectUrl();

CreatePayment class has the same props as described in Comgate documentation