PHPackages                             pilot/ogone-payment-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. pilot/ogone-payment-bundle

ActiveSymfony-bundle[Payment Processing](/categories/payments)

pilot/ogone-payment-bundle
==========================

Ogone payment bundle, doctrine port

1.0.0(10y ago)21513MITPHP

Since Jun 23Pushed 10y ago2 watchersCompare

[ Source](https://github.com/pilot/OgonePaymentBundle)[ Packagist](https://packagist.org/packages/pilot/ogone-payment-bundle)[ RSS](/packages/pilot-ogone-payment-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Ogone payment bundle for [ogone.com](http://ogone.com)
======================================================

[](#ogone-payment-bundle-for-ogonecom)

Doctrine port of [Cedriclombardot/OgonePaymentBundle](https://github.com/cedriclombardot/OgonePaymentBundle)

[![Build Status](https://camo.githubusercontent.com/dab3698af63ca24a7acdb85be3dfe52475e1418a072198ad9845764c49fc75f9/68747470733a2f2f7472617669732d63692e6f72672f70696c6f742f4f676f6e655061796d656e7442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/pilot/OgonePaymentBundle)

Features
--------

[](#features)

- Full featured sample controller
- Simple transactions
- Feedback managment
- Alias managment

Todo
----

[](#todo)

- make part of original bundle with doctrine ORM option

Setup
-----

[](#setup)

Add in your composer.json :

```
"require": {
   "pilot/ogone-payment-bundle": "dev-master"
}

```

Configure your kernel

```
$bundles = array(
    new Pilot\OgonePaymentBundle\PilotOgonePaymentBundle(),
);
```

Configure ogone in config.yml

```
pilot_ogone_payment:
    secret:
        shaInKey: Mysecretsig1875!?
        shaOutKey: Mysecretsig1875!?
        algorithm: sha512
    general:
        PSPID: MyCompagny
        currency: EUR
        language: en_EN
    design:
        title: Give Me Your money - Payment page
        bgColor: "#4e84c4"
        txtColor: "#FFFFFF"
        tblBgColor: "#FFFFFF"
        buttonBgColor: "#00467F"
        buttonTxtColor: "#FFFFFF"
        fontType: "Verdana"
```

Creation of a transaction
-------------------------

[](#creation-of-a-transaction)

In the controller

```
public function indexAction()
{
  $client = $this->getRepository('PilotOgonePaymentBundle:OgoneClient')->findOneBy(array(
      'email' => 'test@test.com',
  ));

  if (!$client) {
      $client = new OgoneClient();
      $client->setEmail('test@test.com');

      $this->getManager()->persist($client);
      $this->getManager()->flush();
  }

  $transaction = $this->get('ogone.transaction_builder')
      ->order()
          ->setClient($client)
          ->setAmount(99)
      ->end()
      ->configure()
          ->setBgColor('#ffffff')
          ->setAcceptUrl($this->generateUrl('ogone_payment_feedback', array(), true))
          ->setDeclineUrl($this->generateUrl('ogone_payment_feedback', array(), true))
          ->setExceptionUrl($this->generateUrl('ogone_payment_feedback', array(), true))
          ->setCancelUrl($this->generateUrl('ogone_payment_feedback', array(), true))
          ->setBackUrl($this->generateUrl('ogone_payment_feedback', array(), true))
      ->end()
  ;

  $transaction->save();

  $form = $transaction->getForm();

  return $this->render(
      'PilotOgonePaymentBundle:Payment:index.html.twig',
      array(
          'form' => $form->createView(),
      )
  );
}
```

And the feedback:

```
public function feedbackAction()
{
  if (!$this->get('ogone.feedbacker')->isValidCall()) {
      throw $this->createNotFoundException();
  }

  $this->get('ogone.feedbacker')->updateOrder();

  return $this->render(
      'PilotOgonePaymentBundle:Payment:feedback.html.twig'
  );
}
```

Alias managment
---------------

[](#alias-managment)

You have Ogone premium account with alias option:

Update `config.yml`

```
pilot_ogone_payment:
    general:
        use_aliases: true
```

In your transaction controller

```
// Client recuperation HERE

// Transaction creation HERE

$transaction->save();

if ($this->container->getParameter('ogone.use_aliases')) {
    $alias = $this->getRepository('PilotOgonePaymentBundle:OgoneAlias')->findOneBy(array(
        'client' => $client,
        'operation' => OgoneAlias::OPERATION_BYMERCHANT,
        'name' => 'ABONNEMENT',
    ));

    if (!$alias) {
        $alias = new OgoneAlias();
        $alias
            ->setClient($client)
            ->setOperation(OgoneAlias::OPERATION_BYMERCHANT)
            ->setStatus(OgoneAlias::STATUS_ACTIVE)
            ->setName('ABONNEMENT')
        ;

        $this->getManager()->persist($alias);
        $this->getManager()->flush();
    }

    $transaction->useAlias($alias);
}

$form = $transaction->getForm();

// render the view
```

See a complete controller implementation here

###  Health Score

31

↑

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 63.1% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3978d ago

### Community

Maintainers

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

---

Top Contributors

[![cedriclombardot](https://avatars.githubusercontent.com/u/651484?v=4)](https://github.com/cedriclombardot "cedriclombardot (53 commits)")[![pilot](https://avatars.githubusercontent.com/u/28564?v=4)](https://github.com/pilot "pilot (24 commits)")[![tijuan](https://avatars.githubusercontent.com/u/414630?v=4)](https://github.com/tijuan "tijuan (5 commits)")[![Burgov](https://avatars.githubusercontent.com/u/417674?v=4)](https://github.com/Burgov "Burgov (1 commits)")[![jeremyb](https://avatars.githubusercontent.com/u/134588?v=4)](https://github.com/jeremyb "jeremyb (1 commits)")

---

Tags

bundleSymfony2paymentogone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pilot-ogone-payment-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/pilot-ogone-payment-bundle/health.svg)](https://phpackages.com/packages/pilot-ogone-payment-bundle)
```

PHPackages © 2026

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