{"repo":"unitpay/unitpay-php","free":true,"listed":false,"github":"https://github.com/unitpay/unitpay-php","clone":"git clone https://github.com/unitpay/unitpay-php.git","description":"PHP SDK for Unitpay API https://help.unitpay.ru","language":"PHP","stars":40,"topics":["unitpay","unitpay-sdk","payments"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Unitpay PHP SDK PHP SDK for the Unitpay.ru payment REST API. A thin, stateless SDK: build a signed redirect to Unitpay's hosted payment page or call the API server-to-server, attach 54-FZ fiscal receipts, and verify inbound webhooks. Everything hangs off one entry point, Unitpay\\Unitpay , which hands out service objects. Official Unitpay documentation: help.unitpay.ru Upgrading from 3.x? 4.0 changes the TransportInterface contract and starts rejecting webhooks older than 5 minutes. If you use the SDK's own transport and your server clock is synchronised, it is a version bump — see the v4 Migration Guide. Upgrading from 2.x? 3.0 moved every class into the Unitpay\\ namespace and replaced api('method', [...]) with typed service methods. There is no compatibility shim — see the v3 Migration Guide, then the v4 guide. Requirements PHP = 7.4 ext-json ext-ctype No Composer dependencies. ext-curl is optional: the default transport uses it when present and falls back to file get contents() otherwise. Installation Then load the Composer autoloader — the package is PSR-4 ( Unitpay\\ → src/ ): See Getting Started for the dev-master option. Quick Start Prefer a server-to-server call? Use $unitpay- payments()- initPayment(...) — see Getting Started. Key Features Hosted form or API — form() builds a signed redirect URL; payments()- initPayment(...) does a server-to-server call. Service objects — payments() , subscriptions() , payouts() , reference() , each with typed methods, so required para","default_branch":null,"files":null,"tree":[],"storefront":"/r/unitpay","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/unitpay/unitpay-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}