{"id":21045144,"url":"https://github.com/fullpipe/payum-flexidengi","last_synced_at":"2025-06-25T00:04:45.242Z","repository":{"id":31591064,"uuid":"35155878","full_name":"fullpipe/payum-flexidengi","owner":"fullpipe","description":"Flexidengi payment gateway for payum","archived":false,"fork":false,"pushed_at":"2015-09-10T14:57:15.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T06:48:24.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fullpipe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-06T12:01:43.000Z","updated_at":"2015-05-07T14:10:13.000Z","dependencies_parsed_at":"2022-09-09T20:52:36.947Z","dependency_job_id":null,"html_url":"https://github.com/fullpipe/payum-flexidengi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fullpipe/payum-flexidengi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-flexidengi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-flexidengi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-flexidengi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-flexidengi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullpipe","download_url":"https://codeload.github.com/fullpipe/payum-flexidengi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-flexidengi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261777466,"owners_count":23208116,"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","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":[],"created_at":"2024-11-19T14:20:11.158Z","updated_at":"2025-06-25T00:04:45.209Z","avatar_url":"https://github.com/fullpipe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flexidengi payment gateway for [payum](http://payum.org/)\n\n## Instalation (with symfony2 payum bundle)\nadd to your composer json\n```json\n{\n    \"require\": {\n        \"payum/payum-bundle\": \"0.14.*\",\n        \"fullpipe/payum-flexidengi\": \"dev-master\"\n    }\n}\n```\n\nAdd FlexidengiPaymentFactory to payum:\n```php\n\u003c?php\n\n// src/Acme/PaymentBundle/AcmePaymentBundle.php\n\nnamespace Acme\\PaymentBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Fullpipe\\Payum\\Flexidengi\\Bridge\\Symfony\\FlexidengiPaymentFactory;\n\nclass AcmePaymentBundle extends Bundle\n{\n    public function build(ContainerBuilder $container)\n    {\n        parent::build($container);\n\n        $extension = $container-\u003egetExtension('payum');\n        $extension-\u003eaddPaymentFactory(new FlexidengiPaymentFactory());\n    }\n}\n```\n\nSince Flexidengi does not supports callback urls.\nYou will require to implement `notifyAction`\n\n```php\n\u003c?php\n// /src/Acme/PaymentBundle/Controller/PaymentController.php\n\nnamespace Acme\\PaymentBundle\\Controller;\n\nuse Payum\\Bundle\\PayumBundle\\Controller\\PayumController;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Payum\\Core\\Request\\Notify;\nuse Payum\\Core\\Request\\GetHumanStatus;\nuse Fullpipe\\Payum\\Flexidengi\\Api;\n\nclass PaymentController extends PayumController\n{\n    public function notifyAction(Request $request)\n    {\n        $gateway = $this-\u003egetPayum()-\u003egetPayment('flexidengi_gateway');\n        $payment = $this-\u003egetPayum()\n            -\u003egetStorage('Acme\\PaymentBundle\\Entity\\Payment')\n            -\u003efindBy(array(\n                'number' =\u003e $request-\u003equery-\u003eget(Api::ORDER_ID_PARAM_NAME),\n            ));\n\n        if ($reply = $gateway-\u003eexecute(new Notify($payment), true)) {\n            if ($reply instanceof HttpResponse) {\n                $gateway-\u003eexecute($status = new GetHumanStatus($payment));\n\n                if ($status-\u003eisCaptured()) {\n                    // Payment is done\n                    // Notify your app here\n                }\n\n                throw $reply;\n            }\n\n            throw new \\LogicException('Unsupported reply', null, $reply);\n        }\n        return new Response('', 204);\n    }\n}\n```\nand you in routing.yml\n```yaml\nacme_payment_notify:\n    path:     /payment_notify\n    defaults: { _controller: AcmePaymentBundle:Payment:notify }\n```\n\n## Configuration (using symfony2 payum bundle)\n```yaml\npayum:\n    security:\n        token_storage:\n            Acme\\PaymentBundle\\Entity\\PaymentToken: { doctrine: orm }\n    storages:\n        Acme\\PaymentBundle\\Entity\\Payment: { doctrine: orm }\n    payments:\n        ...\n        flexidengi_gateway:\n            flexidengi:\n                service_id: 123\n                payment_method_id: 45\n                secret: SECRET_KEY\n                sandbox: true\n        ...\n```\n\n## Usage\n```php\n\u003c?php\n\nnamespace Acme\\PaymentBundle\\Controller;\n\nuse Payum\\Bundle\\PayumBundle\\Controller\\PayumController;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Payum\\Core\\Request\\Notify;\nuse Payum\\Core\\Request\\GetHumanStatus;\nuse Fullpipe\\Payum\\Uniteller\\Api;\n\nclass PaymentController extends PayumController\n{\n    public function prepareAction()\n    {\n        $order = ...;\n        $user = ...;\n\n        $paymentName = 'flexidengi_gateway';\n\n        $storage = $this-\u003eget('payum')\n            -\u003egetStorage('Acme\\PaymentBundle\\Entity\\Payment');\n\n        $payment = $storage-\u003ecreate();\n        $payment-\u003esetNumber($order-\u003egetId());\n        $payment-\u003esetCurrencyCode('RUB');\n        $payment-\u003esetTotalAmount(14025); // 140 руб, 25 коп.\n\n        $storage-\u003eupdate($payment);\n\n        $captureToken = $this-\u003eget('payum.security.token_factory')\n            -\u003ecreateCaptureToken(\n                $paymentName,\n                $payment,\n                'acme_payment_done'\n            );\n\n        return $this-\u003eredirect($captureToken-\u003egetTargetUrl());\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Fpayum-flexidengi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullpipe%2Fpayum-flexidengi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Fpayum-flexidengi/lists"}