{"id":34866167,"url":"https://github.com/tpay-com/tpay-openapi-php","last_synced_at":"2026-01-17T23:32:50.397Z","repository":{"id":57072249,"uuid":"200841158","full_name":"tpay-com/tpay-openapi-php","owner":"tpay-com","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-16T08:59:24.000Z","size":442,"stargazers_count":8,"open_issues_count":0,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-16T23:03:22.384Z","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/tpay-com.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-08-06T11:51:20.000Z","updated_at":"2026-01-16T08:57:48.000Z","dependencies_parsed_at":"2024-03-28T13:47:37.428Z","dependency_job_id":"4104c698-b45a-41a5-861c-3b84f92e367a","html_url":"https://github.com/tpay-com/tpay-openapi-php","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.03703703703703709,"last_synced_commit":"76db50f307ba805dc68af6e7cb2f124c7ded17ca"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/tpay-com/tpay-openapi-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpay-com%2Ftpay-openapi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpay-com%2Ftpay-openapi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpay-com%2Ftpay-openapi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpay-com%2Ftpay-openapi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpay-com","download_url":"https://codeload.github.com/tpay-com/tpay-openapi-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpay-com%2Ftpay-openapi-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28522307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2025-12-25T22:28:10.336Z","updated_at":"2026-01-17T23:32:50.391Z","avatar_url":"https://github.com/tpay-com.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tpay OpenAPI library\n\nLibrary for all methods available via OpenAPI [Tpay](https://openapi.tpay.com/).\n\n[![Latest stable version](https://img.shields.io/packagist/v/tpay-com/tpay-openapi-php.svg?label=current%20version)](https://packagist.org/packages/tpay-com/tpay-openapi-php)\n[![PHP version](https://img.shields.io/packagist/php-v/tpay-com/tpay-openapi-php.svg)](https://php.net)\n[![License](https://img.shields.io/github/license/tpay-com/tpay-openapi-php.svg)](LICENSE)\n[![CI status](https://github.com/tpay-com/tpay-openapi-php/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/tpay-com/tpay-openapi-php/actions)\n[![Type coverage](https://shepherd.dev/github/tpay-com/tpay-openapi-php/coverage.svg)](https://shepherd.dev/github/tpay-com/tpay-openapi-php)\n\n[Polish version :poland: wersja polska](./README_PL.md)\n\n## Installation\n\nInstall via [Composer](https://getcomposer.org):\n```console\ncomposer require tpay-com/tpay-openapi-php\n```\n\nInstall via [Git](https://git-scm.com) over SSH:\n```console\ngit clone git@github.com:tpay-com/tpay-openapi-php.git\n```\n\nInstall via [Git](https://git-scm.com) over HTTPS:\n```php\ngit clone https://github.com/tpay-com/tpay-openapi-php.git\n```\n\nManual download:\nhttps://github.com/tpay-com/tpay-openapi-php/archive/master.zip\n\n## Configuration\n\nThe only thing you need to do is to set your [OAuth](https://oauth.net) credentials like in example config file ([see example](examples/ExamplesConfig.php)).\nYou can generate access keys in [Tpay's merchant panel](https://panel.tpay.com).\n\nThe [`src/Loader.php`](src/Loader.php) file handles all required class loading, so you can include this file to any file you are editing.\n\nAll methods described in [Tpay OpenAPI documentation](https://openapi.tpay.com) can be easily executed by running one of the library methods like:\n```php\n$cache = new Cache(/** here you can inject your PSR6 or PSR16 cache storage object */);\n$tpayApi = new TpayApi($cache,'12345-132123', '456');\n$transactions = $tpayApi-\u003eTransactions-\u003egetTransactions();\n```\n##### Credentials\n\nAll currently available API methods have an example usage in [`Examples`](examples) directory.\nYou can obtain sandbox credentials by registering on https://register.sandbox.tpay.com/ website.\n\n### Examples of usage\n\n##### Frontend forms and payment handlers:\n\n[Payment method choice form](examples/TransactionsApi/BankSelectionForm.php), [BLIK method form](examples/TransactionsApi/BlikPayment.php), [simple credit card form](examples/TransactionsApi/CardGate.php), [extended credit card form](examples/TransactionsApi/CardGateExtended.php), [recurrent payment example](examples/TransactionsApi/RecurrentPayment.php), [payment notification webhook](examples/Notifications/PaymentNotificationExample.php).\n\n##### Merchant accounts registration (for partners only)\n\n[Example of usages](examples/AccountsApi/AccountsApiExample.php).\n\n## Logs\n\nLibrary has own logging system to save all API calls, responses, webhook notifications, and exceptions.\nMake sure that `Logs` directory is writable and add rule to Apache `.htaccess` or NGINX to deny access to this area from browser.\nThe log files are created for each day separately.\n\nThe logging is enabled by default, but you can disable this feature by command:\n```php\nLogger::disableLogging();\n```\n\nYou can also set your own logging path by this command:\n```php\nLogger::setLogPath('/my/own/path/Logs/');\n```\nThe logs file names will be assigned automatically.\n\nYou can replace the logging system above by setting up your own implementation of `Psr\\Log\\LoggerInterface` with:\n```php\nLogger::setLogger($logger);\n```\n\n## Custom templates and static files path\n\nYou can set your own templates path, so you can copy and modify the `phtml` template files from this library.\n```php\nUtil::$customTemplateDirectory = '/my/own/templates/path/';\n```\n\nYou can set your own static files path, so you can copy and modify the `css` and `js` files from this library. By default, the path is based on `$_SERVER['REQUEST_URI']` value.\n```php\nUtil::$libraryPath = '/my/own/path/';\n```\n\n## Language\n\nThe library supports two languages (English and Polish). Default language is English.\nChange language example:\n```php\n// Any time you construct the class providing payment forms, you can pass the language in constructor\n$paymentForms = new PaymentForms('pl');\n// After this line all static messages (input labels, buttons titles etc.) will be displayed in Polish\n\n// If you want to access translations manually, use:\n$lang = new Lang();\n$lang-\u003esetLang('pl'); // for setting language\n$lang-\u003elang('pay'); // to echo translated key\n```\n\n## License\n\nThis library is released under the [MIT License](http://www.opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpay-com%2Ftpay-openapi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpay-com%2Ftpay-openapi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpay-com%2Ftpay-openapi-php/lists"}