{"id":22140611,"url":"https://github.com/athlan/yetipay","last_synced_at":"2025-09-03T12:41:04.424Z","repository":{"id":20999856,"uuid":"24289477","full_name":"athlan/yetipay","owner":"athlan","description":"PHP library for yetipay.pl","archived":false,"fork":false,"pushed_at":"2017-09-05T18:39:45.000Z","size":11,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T21:11:36.398Z","etag":null,"topics":["payment","payment-button","payment-integration","yetipay"],"latest_commit_sha":null,"homepage":null,"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/athlan.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":"2014-09-21T11:40:37.000Z","updated_at":"2018-10-16T08:40:50.000Z","dependencies_parsed_at":"2022-09-01T15:23:04.707Z","dependency_job_id":null,"html_url":"https://github.com/athlan/yetipay","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/athlan/yetipay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fyetipay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fyetipay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fyetipay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fyetipay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athlan","download_url":"https://codeload.github.com/athlan/yetipay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fyetipay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273445503,"owners_count":25107149,"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-09-03T02:00:09.631Z","response_time":76,"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":["payment","payment-button","payment-integration","yetipay"],"created_at":"2024-12-01T21:06:45.241Z","updated_at":"2025-09-03T12:41:04.377Z","avatar_url":"https://github.com/athlan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yetipay PHP Client library\n===\n\nThis library allows to easy integration with [yetipay](https://www.yetipay.pl/) payments.\n\n## Features\n\n* Generated payment button\n* Handles pingback (`URL_STATUS`)\n* Verifies payments\n\n## Installation\n\n### Composer\n\nAdd dependency in `composer.json` file:\n\n```\n{\n    \"require\": {\n        \"athlan/yetipay\": \"1.*\"\n    }\n}\n```\n\n## Examples\n\n### Handle pingback  (`URL_STATUS`)\n\n```php\n\u003c?php \n\nuse Yetipay as Yetipay;\n\n$merchantId = '';\n$authKey1 = '';\n$authKey2 = '';\n\n$yetipay = new Yetipay\\Client($merchantId, $authKey1, $authKey2);\n$pingback = new Yetipay\\TransactionPingback($yetipay);\n\n$params = $_POST; // or more proper way in frameworks, from Request object\n\nif($pingback-\u003evalidateHash($params['hash'], $params)) {\n    // activate product here\n    \n    die('ACK'); // yetipay expects \"ACK\" string in response to confirm transaction\n}\n\ndie('FAILED');\n\n```\n\n### Generate payment button\n\n```php\n\u003c?php\n\nuse Yetipay as Yetipay;\n\n$merchantId = '';\n$authKey1 = '';\n$authKey2 = '';\n\n$yetipay = new Yetipay\\Client($merchantId, $authKey1, $authKey2);\n\n$amount = 5;\n$description = 'Test payment';\n\n$button = new Yetipay\\PaymentButton($amount, $description);\n$button-\u003esetUserId('userid_here');\n$button-\u003esetProductId('productid_here');\n$button-\u003esetReturnUrl('http://localhost/validate-transaction.php?transactionId=%transactionId%');\n\n$buttonGenerator = new Yetipay\\PaymentButtonCodeGenerator($yetipay);\n\n?\u003e\u003chtml xmlns:yp=\"https://www.yetipay.pl\"\u003e\n\n\u003chead\u003e\n  \u003cscript type=\"text/javascript\" src=\"https://www.yetipay.pl/payments/js/316/yetixd.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \n  \u003c?php echo $buttonGenerator-\u003egetButtonCode($button) ?\u003e\n\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n### Validate payment\n\n```php\n\u003c?php \n\nuse Yetipay as Yetipay;\n\n$merchantId = '';\n$authKey1 = '';\n$authKey2 = '';\n\n$yetipay = new Yetipay\\Client($merchantId, $authKey1, $authKey2);\n$pingback = new Yetipay\\TransactionValidate($yetipay);\n\n$transactionId = $_GET['transactionId']; // or more proper way in frameworks, from Request object\n$data = $pingback-\u003evalidateTransaction($transactionId);\n\nif($data['status'] == 200) {\n    // activte product here\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathlan%2Fyetipay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathlan%2Fyetipay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathlan%2Fyetipay/lists"}