{"id":21045148,"url":"https://github.com/fullpipe/payum-uniteller","last_synced_at":"2026-04-25T15:35:48.632Z","repository":{"id":30050294,"uuid":"33599506","full_name":"fullpipe/payum-uniteller","owner":"fullpipe","description":"Uniteller payment gateway for payum","archived":false,"fork":false,"pushed_at":"2015-09-10T15:04:41.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-31T01:59:53.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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-04-08T10:12:01.000Z","updated_at":"2015-05-15T11:10:31.000Z","dependencies_parsed_at":"2022-09-10T23:41:11.690Z","dependency_job_id":null,"html_url":"https://github.com/fullpipe/payum-uniteller","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fullpipe/payum-uniteller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-uniteller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-uniteller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-uniteller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-uniteller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullpipe","download_url":"https://codeload.github.com/fullpipe/payum-uniteller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fpayum-uniteller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32267710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-19T14:20:11.434Z","updated_at":"2026-04-25T15:35:48.603Z","avatar_url":"https://github.com/fullpipe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uniteller 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-uniteller\": \"dev-master\"\n    }\n}\n```\n\nAdd UnitellerPaymentFactory 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\\Uniteller\\Bridge\\Symfony\\UnitellerPaymentFactory;\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 UnitellerPaymentFactory());\n    }\n}\n```\n\nSince Uniteller 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;\n\nclass PaymentController extends PayumController\n{\n    public function notifyAction(Request $request)\n    {\n        $gateway = $this-\u003egetPayum()-\u003egetPayment('uniteller');\n        $payment = $this-\u003egetPayum()\n            -\u003egetStorage('Acme\\PaymentBundle\\Entity\\Payment')\n            -\u003efindBy(array(\n                'number' =\u003e $request-\u003eget('Order_ID'),\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() || $status-\u003eisAuthorized()) {\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```\nadd `http://example.com/payment_notify` to \n`https://lk.uniteller.ru/#/ecshop/settings/????`\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        uniteller_gateway:\n            uniteller:\n                shop_id: 1234567890-1234\n                password: SECRET_PASSWORD\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 = 'uniteller_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(Api::CURRENCY_RUB);\n        $payment-\u003esetTotalAmount($order-\u003egetTotalAmount());\n        // $payment-\u003esetTotalAmount(14025); // =\u003e 140 руб. 25 копеек\n\n        //Optional\n        $payment-\u003esetDescription('DESCRIPTION');\n        $payment-\u003esetClientId($user-\u003egetId());\n        $payment-\u003esetClientEmail($user-\u003egetEmail());\n        $payment-\u003esetDetails(array(\n            'FirstName' =\u003e $user-\u003egetFirstName(),\n            'LastName' =\u003e $user-\u003egetLastName(),\n            'MeanType' =\u003e Api::MEAN_TYPE_ANY,\n            'EMoneyType' =\u003e Api::EMONEY_TYPE_YANDEX,\n        ));\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    public function doneAction(Request $request)\n    {\n        $token = $this-\u003egetHttpRequestVerifier()-\u003everify($request);\n        $gateway = $this-\u003egetPayum()-\u003egetPayment($token-\u003egetPaymentName());\n\n        $gateway-\u003eexecute($status = new GetHumanStatus($token));\n        $payment = $status-\u003egetFirstModel();\n\n        //update order status here\n        // if ($status-\u003eisCaptured()) {\n        //     $order-\u003esetPaid(true);\n        // }\n\n        $this-\u003eget('payum.security.http_request_verifier')-\u003einvalidate($token);\n\n        return $this-\u003eredirect($this-\u003egenerateUrl('acme_thank_you_page'));\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Fpayum-uniteller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullpipe%2Fpayum-uniteller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Fpayum-uniteller/lists"}