{"id":31788922,"url":"https://github.com/zerosdev/tripay-sdk-php","last_synced_at":"2025-10-10T14:29:42.876Z","repository":{"id":96712151,"uuid":"608439381","full_name":"zerosdev/tripay-sdk-php","owner":"zerosdev","description":"Unofficial TriPay.co.id Integration Kit for PHP","archived":false,"fork":false,"pushed_at":"2025-04-03T14:11:21.000Z","size":32,"stargazers_count":15,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T22:52:42.843Z","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/zerosdev.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}},"created_at":"2023-03-02T02:33:33.000Z","updated_at":"2025-08-28T13:56:08.000Z","dependencies_parsed_at":"2023-03-30T19:52:46.813Z","dependency_job_id":null,"html_url":"https://github.com/zerosdev/tripay-sdk-php","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zerosdev/tripay-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Ftripay-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Ftripay-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Ftripay-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Ftripay-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerosdev","download_url":"https://codeload.github.com/zerosdev/tripay-sdk-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Ftripay-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004178,"owners_count":26083688,"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-10T02:00:06.843Z","response_time":62,"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":[],"created_at":"2025-10-10T14:29:08.279Z","updated_at":"2025-10-10T14:29:42.871Z","avatar_url":"https://github.com/zerosdev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003etripay-sdk-php\u003c/h1\u003e\n\u003ch6 align=\"center\"\u003eUnofficial TriPay.co.id Integration Kit for PHP\u003c/h6\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/v/release/zerosdev/tripay-sdk-php?include_prereleases\" alt=\"release\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/zerosdev/tripay-sdk-php\" alt=\"language\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/zerosdev/tripay-sdk-php\" alt=\"license\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/code-size/zerosdev/tripay-sdk-php\" alt=\"size\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/downloads/zerosdev/tripay-sdk-php/total\" alt=\"downloads\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"pulls\"/\u003e\n\u003c/p\u003e\n\n## Requirements\n- PHP v7.2.5+\n- PHP JSON Extension\n- PHP cURL Extension\n\n## Installation\n\n1. Run command\n```\ncomposer require zerosdev/tripay-sdk-php\n```\n\n## Usage\n\n```php\n\u003c?php\n\nrequire 'path/to/your/vendor/autoload.php';\n\nuse ZerosDev\\TriPay\\Client as TriPayClient;\nuse ZerosDev\\TriPay\\Support\\Constant;\nuse ZerosDev\\TriPay\\Support\\Helper;\nuse ZerosDev\\TriPay\\Transaction;\n\n$merchantCode = 'T12345';\n$apiKey = 'd1cfd***********888ed3';\n$privateKey = 'd1cfd***********888ed3';\n$mode = Constant::MODE_DEVELOPMENT;\n$guzzleOptions = []; // Your additional Guzzle options (https://docs.guzzlephp.org/en/stable/request-options.html)\n\n$client = new TriPayClient($merchantCode, $apiKey, $privateKey, $mode, $guzzleOptions);\n$transaction = new Transaction($client);\n\n/**\n * `amount` will be calculated automatically from order items\n * so you don't have to enter it\n * In this example, amount will be 40.000\n */\n$result = $transaction\n    -\u003eaddOrderItem('Gula', 10000, 1)\n    -\u003eaddOrderItem('Kopi', 6000, 5)\n    -\u003ecreate([\n        'method' =\u003e 'BRIVA',\n        'merchant_ref' =\u003e 'INV123',\n        'customer_name' =\u003e 'Nama Pelanggan',\n        'customer_email' =\u003e 'email@konsumen.id',\n        'customer_phone' =\u003e '081234567890',\n        'expired_time' =\u003e Helper::makeTimestamp('6 HOUR'), // see Supported Time Units\n    ]);\n\necho $result-\u003egetBody()-\u003egetContents();\n\n/**\n* For debugging purpose\n*/\n$debugs = $client-\u003edebugs();\necho json_encode($debugs, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);\n```\n\nPlease check the `/examples` for the other examples\n\n## Supported Time Units\n\u003e :exclamation: All time units are in a singular noun\n- SECOND\n- MINUTE\n- HOUR\n- DAY\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerosdev%2Ftripay-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerosdev%2Ftripay-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerosdev%2Ftripay-sdk-php/lists"}