{"id":14983668,"url":"https://github.com/cedriclombardot/ogonepaymentbundle","last_synced_at":"2025-07-27T20:07:30.078Z","repository":{"id":3355044,"uuid":"4400420","full_name":"cedriclombardot/OgonePaymentBundle","owner":"cedriclombardot","description":"Ogone payment bundle, help you to make payment transactions with ogone and Symfony2 ","archived":false,"fork":false,"pushed_at":"2013-08-07T17:39:28.000Z","size":448,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T19:20:26.969Z","etag":null,"topics":["bundle","ogone","php","symfony","symfony-bundle","symfony2","symfony3"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedriclombardot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-22T00:32:50.000Z","updated_at":"2024-05-24T18:55:23.000Z","dependencies_parsed_at":"2022-09-07T07:30:12.620Z","dependency_job_id":null,"html_url":"https://github.com/cedriclombardot/OgonePaymentBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cedriclombardot/OgonePaymentBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedriclombardot%2FOgonePaymentBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedriclombardot%2FOgonePaymentBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedriclombardot%2FOgonePaymentBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedriclombardot%2FOgonePaymentBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedriclombardot","download_url":"https://codeload.github.com/cedriclombardot/OgonePaymentBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedriclombardot%2FOgonePaymentBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417664,"owners_count":24083839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","ogone","php","symfony","symfony-bundle","symfony2","symfony3"],"created_at":"2024-09-24T14:07:45.410Z","updated_at":"2025-07-27T20:07:30.058Z","avatar_url":"https://github.com/cedriclombardot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ogone payment bundle, help you to make payment transactions with ogone and Symfony2 ![project status](http://stillmaintained.com/cedriclombardot/OgonePaymentBundle.png)# ![build status](https://secure.travis-ci.org/cedriclombardot/OgonePaymentBundle.png)#\n\n## Features\n\n* Full featured sample controller\n* Simple transactions\n* Feedback managment\n* Alias managment\n\n## Comming\n\n* Batch operations\n\n## Setup\n\nAdd in your composer.json :\n\n```\n\"require\": {\n   \"cedriclombardot/ogone-payment-bundle\": \"dev-master\"\n}\n```\n\nConfigure your kernel\n\n``` php\n$bundles = array(\n    new Cedriclombardot\\OgonePaymentBundle\\CedriclombardotOgonePaymentBundle(),\n);\n```\n\nConfigure ogone in config.yml\n\n``` yaml\ncedriclombardot_ogone_payment:\n    secret:\n        shaInKey: Mysecretsig1875!?\n        shaOutKey: Mysecretsig1875!?\n        algorithm: sha512\n    general:\n        PSPID: MyCompagny\n        currency: EUR\n        language: en_EN\n    design:\n        title: Give Me Your money - Payment page\n        bgColor: \"#4e84c4\"\n        txtColor: \"#FFFFFF\"\n        tblBgColor: \"#FFFFFF\"\n        buttonBgColor: \"#00467F\"\n        buttonTxtColor: \"#FFFFFF\"\n        fontType: \"Verdana\"\n```\n\n\n## Creation of a transaction\n\nIn a controller\n\n``` php\n\u003c?php\n\n$client = OgoneClientQuery::create()\n                       -\u003efilterByEmail('test@test.com')\n                       -\u003efindOneOrCreate();\n$client-\u003esave();\n\n$transaction = $this-\u003eget('ogone.transaction_builder')\n                    -\u003eorder()\n                        -\u003esetClient($client)\n                        -\u003esetAmount(100)\n                    -\u003eend()\n                    -\u003econfigure()\n                        -\u003esetBgColor(\"red\")\n                        -\u003esetAcceptUrl($this-\u003egenerateUrl('ogone_payment_feedback', array(), true))\n                        -\u003esetDeclineUrl($this-\u003egenerateUrl('ogone_payment_feedback', array(), true))\n                        -\u003esetExceptionUrl($this-\u003egenerateUrl('ogone_payment_feedback', array(), true))\n                        -\u003esetCancelUrl($this-\u003egenerateUrl('ogone_payment_feedback', array(), true))\n                        -\u003esetBackUrl($this-\u003egenerateUrl('ogone_payment_feedback', array(), true))\n                    -\u003eend()\n                    ;\n$form = $transaction-\u003egetForm();\n\nreturn $this-\u003erender(\n    'CedriclombardotOgonePaymentBundle:Payment:index.html.twig',\n    array(\n        'form' =\u003e $form-\u003ecreateView(),\n    )\n);\n\n```\n\n\nAnd the feedback :\n\n``` php\n\u003c?php\n    public function feedbackAction()\n    {\n        if (!$this-\u003eget('ogone.feedbacker')-\u003eisValidCall()) {\n            throw $this-\u003ecreateNotFoundException();\n        }\n\n        $this-\u003eget('ogone.feedbacker')-\u003eupdateOrder();\n\n        return $this-\u003erender(\n            'CedriclombardotOgonePaymentBundle:Payment:feedback.html.twig'\n        );\n    }\n\n```\n\n## Alias managment\n\nYou have Ogone premium account with alias option :\n\nEdit config.yml\n\n``` yaml\ncedriclombardot_ogone_payment:\n    general:\n        use_aliases: true\n```\nIn your transaction controller\n\n``` php\n// Client recuperation HERE\n\n// Alias creation\nif ($this-\u003econtainer-\u003egetParameter('ogone.use_aliases')) {\n    $alias = OgoneAliasQuery::create()\n               -\u003efilterByOgoneClient($client)\n               -\u003efilterByOperation(OgoneAliasPeer::OPERATION_BYMERCHANT)\n               -\u003efilterByName('ABONNEMENT')\n               -\u003efindOneOrCreate();\n\n   $alias-\u003esetLabel('Your abonnement');\n   $alias-\u003esave();\n}\n\n// Transaction creation HERE\n\nif ($this-\u003econtainer-\u003egetParameter('ogone.use_aliases')) {\n    $transaction-\u003euseAlias($alias);\n}\n\n$form = $transaction-\u003egetForm();\n\n// call the view\n```\n\nSee a complete controller implementation here [https://github.com/cedriclombardot/OgonePaymentBundle/blob/master/Controller/PaymentController.php](https://github.com/cedriclombardot/OgonePaymentBundle/blob/master/Controller/PaymentController.php)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedriclombardot%2Fogonepaymentbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedriclombardot%2Fogonepaymentbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedriclombardot%2Fogonepaymentbundle/lists"}