{"id":19943709,"url":"https://github.com/rndoom04/comgate","last_synced_at":"2025-08-04T15:40:25.426Z","repository":{"id":62782162,"uuid":"562434358","full_name":"Rndoom04/comgate","owner":"Rndoom04","description":"Comgate payment gateway","archived":false,"fork":false,"pushed_at":"2022-11-08T21:22:46.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T05:09:47.019Z","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/Rndoom04.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}},"created_at":"2022-11-06T10:58:11.000Z","updated_at":"2022-11-06T10:58:17.000Z","dependencies_parsed_at":"2023-01-21T13:45:30.363Z","dependency_job_id":null,"html_url":"https://github.com/Rndoom04/comgate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"Rndoom04/library-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fcomgate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fcomgate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fcomgate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rndoom04%2Fcomgate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rndoom04","download_url":"https://codeload.github.com/Rndoom04/comgate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241370008,"owners_count":19951850,"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","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":"2024-11-13T00:17:44.818Z","updated_at":"2025-03-01T13:26:02.858Z","avatar_url":"https://github.com/Rndoom04.png","language":"PHP","readme":"# Rndoom04\\Comgate\n\nComgate is payment gateway from the Czech republic. https://www.comgate.cz/\n\n## Installation\n\nInstall Rndoom04\\comgate with composer\n\n```bash\n  composer require Rndoom04\\comgate\n```\n## Usage/Examples\n\nFirst - init the library.\n```php\nuse Rndoom04\\comgate\\comgate;\n\n$comgate = new comgate();\n```\n\nSet the merchant and secret\n```php\n$comgate-\u003esetMerchant('mergantID', '*************');\n```\n\nCreate payment\n```php\n// Prepare data\n$paymentData = (object)[\n  \"price\" =\u003e 10000, // 100.00 CZK should be 10000 (×100)\n  \"curr\" =\u003e \"CZK\", // Currency\n  \"label\" =\u003e \"Product name\", // Short desc. name\n  \"refId\" =\u003e \"123456789\", // Variable symbol\n  \"method\" =\u003e \"ALL\", // Method for payment\n  \"test\" =\u003e true, // false\n  \"prepareOnly\" =\u003e false // !important\n];\n\n// Create payment, obtain transId and redirect URL\n$pay = $comgate-\u003ecreatePayment($data-\u003eprice, $data-\u003ecurr, $data-\u003elabel, $data-\u003erefId, $data-\u003emethod, $data-\u003etest, $data-\u003eprepareOnly);\n\n// Process\nif ($pay['code'] == 0) {\n  // OK, save $pay['transId'] for futher use\n  // var_dump($pay);\n  // Redirect\n  Header(\"Location: \".$pay['redirect']);\n  die();\n} else {\n  // Something went wrong\n  // ... do some magic\n}\n```\n\nGet payment info\n```php\n// Get payment info\n$info = $comgate-\u003egetPaymentInfo(\"some-payment-id\");\nvar_dump($info);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frndoom04%2Fcomgate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frndoom04%2Fcomgate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frndoom04%2Fcomgate/lists"}