{"id":36370372,"url":"https://github.com/lightools/payu","last_synced_at":"2026-01-11T14:00:07.353Z","repository":{"id":57014923,"uuid":"58358545","full_name":"lightools/payu","owner":"lightools","description":"Simple PayU client for online payments with automatic confirmations enabled.","archived":false,"fork":false,"pushed_at":"2016-06-15T10:37:28.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T08:52:21.506Z","etag":null,"topics":["online-payments","payu"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightools.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":"2016-05-09T07:51:57.000Z","updated_at":"2023-12-13T10:37:42.000Z","dependencies_parsed_at":"2022-08-22T09:31:25.862Z","dependency_job_id":null,"html_url":"https://github.com/lightools/payu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lightools/payu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Fpayu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Fpayu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Fpayu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Fpayu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightools","download_url":"https://codeload.github.com/lightools/payu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Fpayu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28306983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"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":["online-payments","payu"],"created_at":"2026-01-11T14:00:07.045Z","updated_at":"2026-01-11T14:00:07.297Z","avatar_url":"https://github.com/lightools.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nThis library provides API for the simplest possible online payment via PayU\nwhere automatic payment confirmation is enabled.\n\n## Installation\n\n```sh\n$ composer require lightools/payu\n```\n\n## Simple usage\n\n```php\n// 1. redirect to payment gate\n$httpClient = new Bitbang\\Http\\Clients\\CurlClient();\n$xmlLoader = new Lightools\\Xml\\XmlLoader();\n$payu = new Lightools\\PayU\\PayU($posId, $posAuthKey, $key1, $key2, $httpClient, $xmlLoader);\n$payment = new Lightools\\PayU\\NewPayment(\n    $orderId, // your order identification\n    $priceAmount, // in crowns (not in hellers)\n    PayU::CHANNEL_TEST,\n    $paymentDescription,\n    $clientFirstname,\n    $clientSurname,\n    $clientEmail\n);\n\n$ipAddress = $_SERVER['REMOTE_ADDR'];\n$redirectUrl = $payu-\u003egetRedirectUrl($payment, $ipAddress);\n\nheader(\"Location: $redirectUrl\");\nexit();\n\n// 2. accept payment update (on \"UrlOnline\")\ntry {\n    $post = filter_input_array(INPUT_POST);\n    $status = $payu-\u003egetPaymentStatus($post);\n\n    $status-\u003egetOrderId();\n    $status-\u003egetStatus(); // e.g. PaymentStatus::STATUS_PAID\n\n    echo 'OK';\n    exit();\n\n} catch (InvalidRequestException $ex) {\n    // invalid request received (e.g. some data missing)\n\n} catch (InvalidSignatureException $ex) {\n    // invalid signature in request or response\n\n} catch (RequestFailedException $ex) {\n    // HTTP request to PayU failed\n}\n```\n\n## How to run tests\n\n```sh\n$ vendor/bin/tester tests\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightools%2Fpayu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightools%2Fpayu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightools%2Fpayu/lists"}