{"id":34131042,"url":"https://github.com/duitkupg/duitku-go","last_synced_at":"2026-03-11T12:22:32.295Z","repository":{"id":289637886,"uuid":"966698719","full_name":"duitkupg/duitku-go","owner":"duitkupg","description":"Duitku API Library for Go","archived":false,"fork":false,"pushed_at":"2025-05-05T10:50:10.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T05:45:43.960Z","etag":null,"topics":["api-library","duitku","go","payment","payment-gateway"],"latest_commit_sha":null,"homepage":"https://docs.duitku.com/","language":"Go","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/duitkupg.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}},"created_at":"2025-04-15T10:16:08.000Z","updated_at":"2025-05-13T03:55:52.000Z","dependencies_parsed_at":"2025-04-24T09:39:52.161Z","dependency_job_id":"69d96798-1c84-44b9-bfaa-007135c77a6f","html_url":"https://github.com/duitkupg/duitku-go","commit_stats":null,"previous_names":["idoyudha/duitku-go","duitkupg/duitku-go"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/duitkupg/duitku-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duitkupg%2Fduitku-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duitkupg%2Fduitku-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duitkupg%2Fduitku-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duitkupg%2Fduitku-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duitkupg","download_url":"https://codeload.github.com/duitkupg/duitku-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duitkupg%2Fduitku-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30380938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["api-library","duitku","go","payment","payment-gateway"],"created_at":"2025-12-15T00:43:03.460Z","updated_at":"2026-03-11T12:22:32.280Z","avatar_url":"https://github.com/duitkupg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duitku Golang API Client Library\n[![Go Reference](https://pkg.go.dev/badge/github.com/idoyudha/duitku-go)](https://pkg.go.dev/github.com/idoyudha/duitku-go)\n[![Build Status](https://github.com/idoyudha/duitku-go/actions/workflows/go.yml/badge.svg?branch=master)](https://github.com/idoyudha/duitku-go/actions/workflows/go.yml?query=branch%3Amaster)\n[![Go Report Card](https://goreportcard.com/badge/github.com/idoyudha/duitku-go)](https://goreportcard.com/report/github.com/idoyudha/duitku-go)\n[![License: MIT](https://img.shields.io/badge/License-MIT-red.svg)](https://opensource.org/licenses/MIT)\n\nDuitku API Library for Go\n\n## Supported Feature\n|        Feature         |              Function                |                HTTP Request                   |              Description              |\n|------------------------|--------------------------------------|-----------------------------------------------|---------------------------------------|\n| Get Payment Method     | client.PaymentService.GetMethods     | POST /merchant/paymentmethod/getpaymentmethod | Get list of available payment methods |\n| Create New Transaction | client.TransactionService.Create     | POST /merchant/v2/inquiry                     | Create Transaction via V2 API         |\n| Get Transaction        | client.TransactionService.GetStatus  | POST /merchant/transactionStatus              | Get Transaction via V2 API            |\n| Craete New Invoice     | client.InvoiceService.Create         | POST /merchant/createInvoice                  | Create Transaction via POP API        |\n\n## Requirements\n- Go 1.24 or later\n- Duitku account, [register here](https://dashboard.duitku.com/Account/Register)\n- [API Key](https://docs.duitku.com/en/account/#account-integration--getting-api-key)\n\n## Documentation\n- https://docs.duitku.com/\n\n## Installation\nMake sure your project is using go modules, if not initialize it:\n```bash\ngo mod init\n```\n\nGet this library, add to your project\n\n```bash\ngo get -u github.com/idoyudha/duitku-go\n```\n\n## Example Usage\n```go\nimport (\n\t\"context\"\n\n\t\"github.com/idoyudha/duitku-go\"\n\t\"github.com/idoyudha/duitku-go/common\"\n\t\"github.com/idoyudha/duitku-go/invoice\"\n)\n\nclient := duitku.NewClient(\u0026common.Config{\n\tMerchantCode: \"YOUR MERCHANT CODE\",\n\tAPIKey:       \"YOUR API KEY\",\n\tEnvironment:  common.SandboxEnv,\n})\n\ninvoiceRequest := invoice.CreateInvoiceRequest{\n    PaymentAmount:   10001,\n\tMerchantOrderId: \"YOUR UNIQUE ORDER ID\",\n\tProductDetails:  \"YOUR PRODUCT DETAILS\",\n\tEmail:           \"admin@yourcompany.com\",\n\tCallbackURL:     \"https://yourcompany.com/callback\",\n\tReturnURL:       \"https://yourcompany.com\",\n}\n\nres, httpResponse, err := client.InvoiceService.Create(context.Background(), invoiceRequest)\nif err != nil {\n\tlog.Printf(\"Found error InvoiceService.Create =\u003e %v\", err)\n}\n\nlog.Printf(\"Full HTTP Response from InvoiceService.Create =\u003e %v\", httpResponse)\nlog.Printf(\"Response body from InvoiceService.Create =\u003e %v\", createInvoiceRes)\n```\n\n## More Detailed Example\n- [Invoice (Create Invoice - POP)](examples/invoice.md)\n- [Payment (Get Payment Method)](examples/payment.md)\n- [Transaction (Create Transaction, Get Transaction Status)](examples/transaction.md)\n\n## Support\nIf you have a feature request or spotted a bug or a techical problem, [create an issue here](https://github.com/idoyudha/duitku-go/issues/new/choose).\nFor other questions, please contact duitku through their live chat on your dashboard.\n\n## License\nMIT license. For more information, see the LICENSE file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduitkupg%2Fduitku-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduitkupg%2Fduitku-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduitkupg%2Fduitku-go/lists"}