{"id":16968801,"url":"https://github.com/reactmore/tripay-payment-gateway","last_synced_at":"2026-05-18T01:06:27.261Z","repository":{"id":62533871,"uuid":"401953461","full_name":"reactmore/tripay-payment-gateway","owner":"reactmore","description":"Client API Tripay Unofficial","archived":false,"fork":false,"pushed_at":"2021-09-01T14:34:02.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T05:32:42.956Z","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/reactmore.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":"2021-09-01T06:20:09.000Z","updated_at":"2021-09-01T15:05:21.000Z","dependencies_parsed_at":"2022-11-02T15:15:18.212Z","dependency_job_id":null,"html_url":"https://github.com/reactmore/tripay-payment-gateway","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/reactmore/tripay-payment-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Ftripay-payment-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Ftripay-payment-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Ftripay-payment-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Ftripay-payment-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reactmore","download_url":"https://codeload.github.com/reactmore/tripay-payment-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Ftripay-payment-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: 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":"2024-10-14T00:22:57.500Z","updated_at":"2026-05-18T01:06:27.245Z","avatar_url":"https://github.com/reactmore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tripay Payment Gateway Client Library\n===============\n[![Latest Stable Version](http://poser.pugx.org/reactmore/tripay-payment-gateway/v)](https://packagist.org/packages/reactmore/tripay-payment-gateway) [![License](http://poser.pugx.org/reactmore/tripay-payment-gateway/license)](https://packagist.org/packages/reactmore/tripay-payment-gateway) [![Total Downloads](http://poser.pugx.org/reactmore/tripay-payment-gateway/downloads)](https://packagist.org/packages/reactmore/tripay-payment-gateway)\n\nFor details please visit Official [Documentation](https://payment.tripay.co.id/developer).\n\n## Instalation\n\n```\ncomposer require reactmore/tripay-payment-gateway\n```\n\n## Configuration\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Reactmore\\Tripay\\Main;\n\n$data = new Main([\n    'apiKey' =\u003e 'Your-Apikey',\n    'privateKey' =\u003e 'Your-Private-Key',\n    'merchantCode' =\u003e 'Your Merchant',\n    'stage' =\u003e 'sandbox or Productions'\n]);\n\n$init = $data-\u003einit()-\u003egetPayment();\n\n// Payload Must Array\n$payload = ['code' =\u003e 'BRIVA'];\n\necho '\u003cpre\u003e';\nprint_r($init-\u003egetInstructions($payload));\necho '\u003c/pre\u003e';\n```\n\nIf you are using Dot ENV you can add a Field in env.example and only need to call the main class\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Reactmore\\Tripay\\Main;\n\n$data = new Main();\n\n$init = $data-\u003einit()-\u003einitMerchant();\n\n// Payload Must Array\n$payload = ['code' =\u003e 'BRIVA'];\n\necho '\u003cpre\u003e';\nprint_r($init-\u003einstructions()-\u003eget($payload));\necho '\u003c/pre\u003e';\n```\n\nCallback Handler \n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Reactmore\\Tripay\\Main;\n\n$data = new Main();\n\n$init = $data-\u003einitCallback();\n\nif ($init-\u003evalidateSignature()) {\n\n    if ($init-\u003ecallEvent() === 'payment_status') {\n        // Response Callback\n        $data = json_encode($init-\u003eget(), true);\n\n        // Get Status From Data\n        $status = $data['status'];\n\n        if ($status === 'PAID') {\n            // Your Logic\n            echo $status;\n        } elseif ($status === 'PAID') {\n            // Your Logic\n            echo $status;\n        } elseif ($status === 'UNPAID') {\n            // Your Logic\n            echo $status;\n        } elseif ($status === 'REFUND') {\n            // Your Logic\n            echo $status;\n        } elseif ($status === 'EXPIRED') {\n            // Your Logic\n            echo $status;\n        } else {\n            // Your Logic\n            echo $status; // Failed\n        }\n    }\n    // IF ERROR FROM SYSTEM THROW IN THIS SECTIONS \n\n    // PUT RESPONSE CALLBACK TO CALLBACK-TRIPAY.JSON\n    file_put_contents(__DIR__ . '/callback-tripay.json', $init-\u003eget() . PHP_EOL . PHP_EOL, FILE_APPEND | LOCK_EX);\n} else {\n    echo  'Invalid Signature! ';\n    exit;\n}\n```\n\n## Method\n\n| API  | Method | Endpoint | Status |\n|---|---|---|---|\n| `PAYMENT Method`| `initPayment()` | `instructions()` | OK |\n| `MERCHANT Method`|  `initMerchant()` | `paymentchannel()`, `calculator()`, `transactions` | OK |\n| `TRANSACTIONS CLOSE`|  `initTransactions()`| `transactions()`, `detail()`, `create()` | OK |\n| `TRANSACTIONS OPEN`| `initTransactionsOpen()` | `transactions()`, `detail()`, `create()` | OK |\n| `CALLBACK`|  `InitCallback()` | `signature()`, `callbackSignature()`, `validateSignature()`, `CallEvent()`| OK |\n| `PPOB`|  `InitPPOB()` | | Progress |\n\n## For Handle Actions \n\n\n| CODE  | MESSAGE |\n|---|---|\n| `408` | Connection Timeout Error. Please check your internet connection and try again |\n| `400` | Message From API Check Documentation |\n| `200` | Valid |\n\nValidation Request\nReturn Throw;\n| THROW  | What Is |\n|---|---|\n| `Missing arguements exception. Content fields must be complete` | Request is Valid but you forgot pass Main Argument |\n| `Field {missingFields} is missing` | You must forget Field Require From API |\n| `Content type must be array` | All request make from Array so code not pass if not in array\n\n\n\n## License\n\nPlease see the [LICENSE](LICENSE) included in this repository for a full copy of the MIT license, which this project is licensed under.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactmore%2Ftripay-payment-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freactmore%2Ftripay-payment-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactmore%2Ftripay-payment-gateway/lists"}