{"id":31933045,"url":"https://github.com/itecommpay/paymentpage-sdk-php","last_synced_at":"2025-10-14T05:51:28.923Z","repository":{"id":41970716,"uuid":"132122782","full_name":"ITECOMMPAY/paymentpage-sdk-php","owner":"ITECOMMPAY","description":"Payment Page SDK","archived":false,"fork":false,"pushed_at":"2025-09-29T07:50:57.000Z","size":194,"stargazers_count":8,"open_issues_count":4,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-29T09:25:28.327Z","etag":null,"topics":["payments","php","sdk"],"latest_commit_sha":null,"homepage":"https://ecommpay.com/","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/ITECOMMPAY.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":"2018-05-04T09:58:39.000Z","updated_at":"2025-09-29T07:41:26.000Z","dependencies_parsed_at":"2023-12-14T12:29:03.002Z","dependency_job_id":"150f367a-f177-4df1-b03a-f8b5f0344500","html_url":"https://github.com/ITECOMMPAY/paymentpage-sdk-php","commit_stats":{"total_commits":31,"total_committers":15,"mean_commits":2.066666666666667,"dds":0.8064516129032258,"last_synced_commit":"e5f2ef7f66566c9d9d9547e974b3bedb7d3cc101"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ITECOMMPAY/paymentpage-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITECOMMPAY%2Fpaymentpage-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITECOMMPAY%2Fpaymentpage-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITECOMMPAY%2Fpaymentpage-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITECOMMPAY%2Fpaymentpage-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ITECOMMPAY","download_url":"https://codeload.github.com/ITECOMMPAY/paymentpage-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ITECOMMPAY%2Fpaymentpage-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018011,"owners_count":26086237,"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-10-14T02:00:06.444Z","response_time":60,"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":["payments","php","sdk"],"created_at":"2025-10-14T05:51:23.847Z","updated_at":"2025-10-14T05:51:28.916Z","avatar_url":"https://github.com/ITECOMMPAY.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EcommPay PHP SDK\n\n[![Build Status](https://travis-ci.org/ITECOMMPAY/paymentpage-sdk-php.svg?branch=master)](https://travis-ci.org/ITECOMMPAY/paymentpage-sdk-php)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/13f0385331642461cba7/test_coverage)](https://codeclimate.com/github/ITECOMMPAY/paymentpage_sdk/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/13f0385331642461cba7/maintainability)](https://codeclimate.com/github/ITECOMMPAY/paymentpage_sdk/maintainability)\n\nThis is a set of libraries in the PHP language to ease integration of your service\nwith the EcommPay Payment Page.\n\nPlease note that for correct SDK operating you must have at least PHP 7.0.  \n\n## Payment flow\n\n![Payment flow](flow.png)\n\n## Installation\n\nInstall with composer\n```bash\ncomposer require ecommpay/paymentpage-sdk\n```\n\n### Get URL for payment\n\n```php\n$gate = new ecommpay\\Gate('secret');\n$payment = new ecommpay\\Payment('11', 'some payment id');\n$payment-\u003esetPaymentAmount(1000)-\u003esetPaymentCurrency('RUB');\n$url = $gate-\u003egetPurchasePaymentPageUrl($payment);\n``` \n\n`$url` here is the signed URL.\n\nIf you want to use another domain for URL you can change it with optional `Gate` constructor parameter:\n```php\nnew ecommpay\\Gate('secret', 'https://mydomain.com/payment');\n```\nor change it with method \n```php\n$gate-\u003esetPaymentBaseUrl('https://mydomain.com/payment');\n```\n\n### Handle callback from Ecommpay\n\nYou'll need to autoload this code in order to handle notifications:\n\n```php\n$gate = new ecommpay\\Gate('secret');\n$callback = $gate-\u003ehandleCallback($data);\n```\n\n`$data` is the JSON data received from payment system;\n\n`$callback` is the Callback object describing properties received from payment system;\n`$callback` implements these methods: \n1. `Callback::getPaymentStatus();`\n    Get payment status.\n2. `Callback::getPayment();`\n    Get all payment data.\n3. `Callback::getPaymentId();`\n    Get payment ID in your system.\n    \n### TODO\n\n- [x] Payment Page opening \n- [x] Notifications handling\n- [ ] Direct Gate requests\n- [ ] PHPDoc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitecommpay%2Fpaymentpage-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitecommpay%2Fpaymentpage-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitecommpay%2Fpaymentpage-sdk-php/lists"}