{"id":18059035,"url":"https://github.com/nyancodeid/lumen-midtrans","last_synced_at":"2025-04-05T11:26:56.750Z","repository":{"id":94528938,"uuid":"294909215","full_name":"nyancodeid/lumen-midtrans","owner":"nyancodeid","description":"Midtrans: Payment Gateway Indonesia with Lumen MicroFramework Example","archived":false,"fork":false,"pushed_at":"2020-09-12T09:11:44.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T22:30:51.609Z","etag":null,"topics":["lumen-framework","midtrans","midtrans-php","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nyancodeid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-09-12T09:10:41.000Z","updated_at":"2021-11-30T01:36:25.000Z","dependencies_parsed_at":"2023-03-13T16:59:20.401Z","dependency_job_id":null,"html_url":"https://github.com/nyancodeid/lumen-midtrans","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyancodeid%2Flumen-midtrans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyancodeid%2Flumen-midtrans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyancodeid%2Flumen-midtrans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyancodeid%2Flumen-midtrans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyancodeid","download_url":"https://codeload.github.com/nyancodeid/lumen-midtrans/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247328103,"owners_count":20921134,"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":["lumen-framework","midtrans","midtrans-php","php7"],"created_at":"2024-10-31T03:10:01.659Z","updated_at":"2025-04-05T11:26:56.741Z","avatar_url":"https://github.com/nyancodeid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Midtrans Lumen Example\n\n\u003ca href=\"https://lumen.laravel.com/docs/7.x\"\u003e\u003cimg src=\"https://img.shields.io/badge/lumen-v7.2.1-orange\" alt=\"Lumen (v7.2.1)\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/veritrans/veritrans-php\"\u003e\u003cimg src=\"https://img.shields.io/badge/veritrans%2Fveritrans--php-dev--master-green\" alt=\"Midtrans-PHP (v1.2)\"\u003e\u003c/a\u003e\n\nExample Project How to implement Midtrans with Lumen MicroFramework. **Disclaimer**, this project is for learning purposes only.\n\n## Includes\n- Create SNAP Token.\n- Check Transaction Status.\n- Cancel Transaction.\n- MidtransMiddleware.\n- Authentication (`not-available`)\n\n## Configuration\nMidtrans Configuration is available on `.env` file. And also is ported into config file `configs/app.php` so you can call it using `config` function.\n\n```env\nMIDTRANS_MERCH_ID=xxx\nMIDTRANS_CLIENT_KEY=SB-Mid-client-xxx\nMIDTRANS_SERVER_KEY=SB-Mid-server-xxx\nMIDTRANS_IS_PRODUCTION=false\nMIDTRANS_IS_SANITIZED=true\n```\n\n## Routes\n| Method | URI             | Action     | Middleware | Map To                                                          |\n| ------ | --------------- | ---------- | ---------- | --------------------------------------------------------------- |\n| GET    | /               | Closure    |            |                                                                 |\n| GET    | /products       | Controller |            | App\\Http\\Controllers\\ProductController@select_view              |\n| GET    | /select/{name}  | Controller |            | App\\Http\\Controllers\\MidtransController@create_transaction_view |\n| GET    | /tx/status/{id} | Controller | midtrans   | App\\Http\\Controllers\\MidtransController@get_tx_status           |\n| POST   | /tx/cancel/{id} | Controller | midtrans   | App\\Http\\Controllers\\MidtransController@cancel_tx               |\n| POST   | /tx/create      | Controller | midtrans   | App\\Http\\Controllers\\MidtransController@create_transaction      |\n| GET    | /midtrans       | Closure    | midtrans   |                                                                 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyancodeid%2Flumen-midtrans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyancodeid%2Flumen-midtrans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyancodeid%2Flumen-midtrans/lists"}