Download the PHP package comgate/sdk without Composer
On this page you can find all versions of the php package comgate/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sdk
Comgate / PHP SDK
💰 PHP library for communication with Comgate.
Getting Started
Installation
To install latest version of comgate/sdk
use Composer.
You have to install php-xml extension on your PHP server (e.g.: Ubuntu: apt-get install php-xml).
Documentation
- https://help.comgate.cz/docs/en/api-protocol-en (english version)
- https://help.comgate.cz/docs/api-protokol (czech version)
Registration
- At first register your account at our side comgate.cz.
- You will get merchant indentificator and secret.
- Allow your eshop server IPv4 address at portal.comgate.cz.
- Set PAID, CANCELLED, PENDING and STATUS URL at portal.comgate.cz.
Usage
- Setup client
- Create payment
- Check payment status
- Handle notification
Setup client
Create payment
Example of successfull response for $client->createPayment
.
Example of error response for $client->createPayment
.
Get methods
Finish the order and show payment status to returning payer
- Example PAID URL: https://your-eshop.tld/order-finish.php?id=${id}&refId=${refId}&status=PAID
- Example PAID CANCELLED: https://your-eshop.tld/order-finish.php?id=${id}&refId=${refId}&status=CANCELLED
- Example PAID PENDING: https://your-eshop.tld/order-finish.php?id=${id}&refId=${refId}&status=PENDING
Receive payment notification (server-to-server)
Example URL: https://your-eshop.tld/notify.php
Create a refund
Debugging
Logging
We are using PSR-3 for logging.
Take a look at our tests to see the logger format.
Maintenance
If you find a bug, please submit the issue in Github directly.
Thank you for using our Comgate payment.
License
Copyright (c) 2024 Comgate a.s. MIT Licensed.
All versions of sdk with dependencies
psr/log Version ^1.1|^2|^3
psr/http-message Version ^1.0.1|^2
phpseclib/phpseclib Version ^3.0