PHPackages                             teraxis/concord-sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. teraxis/concord-sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

teraxis/concord-sdk-php
=======================

SDK for ConcordPay

03PHP

Since May 27Pushed 2y agoCompare

[ Source](https://github.com/teraxis/concord-sdk-php)[ Packagist](https://packagist.org/packages/teraxis/concord-sdk-php)[ RSS](/packages/teraxis-concord-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ConcordPay SDK-PHP
==================

[](#concordpay-sdk-php)

[ConcordPay SDK Documentation](https://pay.concord.ua/docs/docs/en/dispatcher/)

Connect ConcordPaySDK.php to your project
-----------------------------------------

[](#connect-concordpaysdkphp-to-your-project)

```
require_once('ConcordPaySDK.php');

```

Create constants env.php file with constants:
---------------------------------------------

[](#create-constants-envphp-file-with-constants)

```
const PRIVATE_KEY = '';
const MERCHANT_ID = '';

```

*The sample file (env.example.php) is in the root of the project.*

Create Object SDK in your php code
----------------------------------

[](#create-object-sdk-in-your-php-code)

```
$sdk = new ConcordPaySDK(PRIVATE_KEY);

```

Create array with necessary params
----------------------------------

[](#create-array-with-necessary-params)

The list of params you can see in the [ConcordPay SDK documentation](https://pay.concord.ua/docs/docs/en/dispatcher/).

For Example:

```
$params = [
    'operation'    => 'Purchase',
    'merchant_id'  => MERCHANT_ID,
    'amount'       => 0.1,
    'order_id'     => '60#20210810',
    'currency_iso' => 'UAH',
    'description'  => 'test',
    'add_params'   => [],
    'approve_url'  => 'http://sdk.loc/reciver.php',
    'decline_url'  => 'http://sdk.loc/decline',
    'callback_url' => 'http://sdk.loc/reciver.php',
    'cancel_url'   => 'http://sdk.loc/cancel'
];

```

In case you need to specify button *"Send"* you can use ID of the form : `sdk-concord`.

Call method with params
-----------------------

[](#call-method-with-params)

For Example:

```
echo $sdk->purchase($params);

```

Available methods are the same as in ConcordPay Documentation
-------------------------------------------------------------

[](#available-methods-are-the-same-as-in-concordpay-documentation)

MethodOperationparamsReturn array of parameterspurchasePayment on the payment processing pagerecPaymentRecurrent payments RecPayment (payment by token)verifyVerify OperationreversalOperation ReversalcompleteOperation CompletecheckOperation Checkp2pCreditOperation P2PCreditgetBalanceGet Balance Operation (GetBalance)p2pDebitOperation P2PDebitpurchaseOnMerchantOperation PurchaseOnMerchantgetMasterpassTokenGetting a token for MasterpasspurchaseMasterpassMaking a payment through Masterpassconfirm3DSThe confirmation of 3DS Verification Verification```
$sdk   = new ConcordPaySDK(PRIVATE_KEY);
$token = $sdk->getMasterpassToken($params);
...

```

Other
-----

[](#other)

Each method in **ConcordPaySDK** can return `query` or method `buildForm` methods.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/faf6851bddee09660e595be5b693c814910456af1ef616449e3e3eeed7ead880?d=identicon)[teraxis](/maintainers/teraxis)

---

Top Contributors

[![teraxis](https://avatars.githubusercontent.com/u/38819145?v=4)](https://github.com/teraxis "teraxis (7 commits)")[![gercpay](https://avatars.githubusercontent.com/u/145002860?v=4)](https://github.com/gercpay "gercpay (1 commits)")

### Embed Badge

![Health badge](/badges/teraxis-concord-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/teraxis-concord-sdk-php/health.svg)](https://phpackages.com/packages/teraxis-concord-sdk-php)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
