PHPackages                             cardinity/client-bundle - 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. cardinity/client-bundle

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

cardinity/client-bundle
=======================

Cardinity Credit Card payments bundle for Symfony2

v1.0.2(8y ago)115.7k2[2 issues](https://github.com/cardinity/client-bundle/issues)[1 PRs](https://github.com/cardinity/client-bundle/pulls)MITPHPPHP &gt;=5.4.0

Since Mar 16Pushed 2y ago4 watchersCompare

[ Source](https://github.com/cardinity/client-bundle)[ Packagist](https://packagist.org/packages/cardinity/client-bundle)[ Docs](http://www.cardinity.com)[ RSS](/packages/cardinity-client-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (6)Used By (0)

CardinityClientBundle
=====================

[](#cardinityclientbundle)

[![Build Status](https://camo.githubusercontent.com/b2dd522057f232793a69389ac0f547497ee4de1713fd29e4148a3ffda57e7255/68747470733a2f2f7472617669732d63692e6f72672f63617264696e6974792f636c69656e742d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cardinity/client-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d430b2269b9d35ccc93b5cce42f3062b8b05bbabb2ff3fc5a2e7093ff1ed6b3a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63617264696e6974792f636c69656e742d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cardinity/client-bundle/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/d2091b39bdb825cff12bdb3fb35345e295b99b56adf740957e70c5a6649e4a31/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32373036656663632d646538622d343834382d383963632d6331633338663932353336642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/2706efcc-de8b-4848-89cc-c1c38f92536d)

Deprecation notice
------------------

[](#deprecation-notice)

This repository is deprecated.

Installation
------------

[](#installation)

### Installing via [Composer](https://getcomposer.org)

[](#installing-via-composer)

```
$ php composer.phar require cardinity/client-bundle
```

### Configuration

[](#configuration)

To use the bundle you have to define two parameters in your `app/config/config.yml` file under `cardinity_client` section

```
# app/config/config.yml
cardinity_client:
    consumer_key: key
    consumer_secret: secret
```

Where:

- `consumer_key`: You can find your Consumer Key and Consumer Secret in Cardinity member’s area.
- `consumer_secret`: You can find your Consumer Key and Consumer Secret in Cardinity member’s area.

### Registering the Bundle

[](#registering-the-bundle)

You have to add `CardinityClientBundle` to your `AppKernel.php`:

```
# app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ... other bundles
            new Cardinity\ClientBundle\CardinityClientBundle()
        );

        return $bundles;
    }
}
```

### Enable credit card processing with 3-D secure DEMO

[](#enable-credit-card-processing-with-3-d-secure-demo)

Include following lines to `app/config/routing.yml`:

```
cardinity_client:
    resource: "@CardinityClientBundle/Resources/config/routing.yml"
    prefix: /cardinity
```

And if you are using PHP built-in web server:

```
    app/console server:run
```

Try to open browser with address `http://localhost:8000/cardinity`.

Usage
-----

[](#usage)

### Services

[](#services)

This bundle comes with following service which simplifies the Cardinity implementation in your project:

```
/** @type Cardinity\Client */
$client = $this->container->get('cardinity_client.service.client');
```

### Available Methods

[](#available-methods)

Validates and executes Cardinity query

```
/** @type Cardinity\Method\ResultObjectInterface
$result = $client->call($query);
```

### Available Queries

[](#available-queries)

#### Payment

[](#payment)

```
Cardinity\Payment\Create($body)
Cardinity\Payment\Finalize($paymentId, $authorizeData)
Cardinity\Payment\Get($paymentId)
Cardinity\Payment\GetAll($limit)
```

#### Settlement

[](#settlement)

```
Cardinity\Settlement\Create($paymentId, $amount, $description = null)
Cardinity\Settlement\Get($paymentId, $settlementId)
Cardinity\Settlement\GetAll($paymentId)
```

#### Void

[](#void)

```
Cardinity\Void\Create($paymentId, $description = null)
Cardinity\Void\Get($paymentId, $voidId)
Cardinity\Void\GetAll($paymentId)
```

#### Refund

[](#refund)

```
Cardinity\Refund\Create($paymentId, $amount, $description = null)
Cardinity\Refund\Get($paymentId, $refundId)
Cardinity\Refund\GetAll($paymentId)
```

#### Usage

[](#usage-1)

```
use Cardinity\Method\Payment;

/** @type Cardinity\Client */
$client = $this->container->get('cardinity_client.service.client');
try {
    /** @type Payment\Payment */
    $payment = $client->call(new Payment\Create([
        'amount' => 50.00,
        'currency' => 'EUR',
        'settle' => false,
        'description' => 'some description',
        'order_id' => '12345678',
        'country' => 'LT',
        'payment_method' => Cardinity\Payment\Create::CARD,
        'payment_instrument' => [
            'pan' => '4111111111111111',
            'exp_year' => 2018,
            'exp_month' => 12,
            'cvc' => '456',
            'holder' => 'Mike Dough'
        ]
    ]));

    /** @type Payment\Payment */
    $finalizedPayment = $client->call(new Payment\Finalize(
        $payment->getId(),
        $payment->getAuthorizationInformation()->getData()
    ));
} catch (Cardinity\Exception\Declined $e) {
    // Payment has been declined
} catch (Cardinity\Exception\Runtime $e) {
    // Other type of error happened
}
```

#### More usage examples available at [Cardinity PHP client repository](https://github.com/cardinity/cardinity-sdk-php).

[](#more-usage-examples-available-at-cardinity-php-client-repository)

Official API documentation can be found [here](https://developers.cardinity.com/api/v1/).
-----------------------------------------------------------------------------------------

[](#official-api-documentation-can-be-found-here)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~641 days

Total

4

Last Release

2156d ago

Major Versions

v1.0.2 → v2.0.0.x-dev2020-06-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31023?v=4)[wSuFF](/maintainers/wSuFF)[@wsuff](https://github.com/wsuff)

---

Top Contributors

[![eivydas](https://avatars.githubusercontent.com/u/23526632?v=4)](https://github.com/eivydas "eivydas (6 commits)")[![kuusas](https://avatars.githubusercontent.com/u/1662530?v=4)](https://github.com/kuusas "kuusas (5 commits)")[![podolskis](https://avatars.githubusercontent.com/u/1670724?v=4)](https://github.com/podolskis "podolskis (4 commits)")[![CRD-Gintaras](https://avatars.githubusercontent.com/u/127403977?v=4)](https://github.com/CRD-Gintaras "CRD-Gintaras (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cardinity-client-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cardinity-client-bundle/health.svg)](https://phpackages.com/packages/cardinity-client-bundle)
```

###  Alternatives

[horstoeko/zugferd

A library for creating and reading european electronic invoices

4174.3M18](/packages/horstoeko-zugferd)[payum/payum-bundle

One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.

59510.3M40](/packages/payum-payum-bundle)[jms/payment-core-bundle

A unified API for processing payments with Symfony

194742.9k36](/packages/jms-payment-core-bundle)[cardinity/cardinity-sdk-php

Client library for Cardinity credit card processing API

16318.8k2](/packages/cardinity-cardinity-sdk-php)

PHPackages © 2026

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