{"id":20284916,"url":"https://github.com/chayanforyou/bkash-pgwclient-demo-flutter","last_synced_at":"2025-07-31T06:33:37.443Z","repository":{"id":50311467,"uuid":"336712180","full_name":"chayanforyou/bkash-pgwclient-demo-flutter","owner":"chayanforyou","description":"bKash payment gateway integration in flutter","archived":false,"fork":false,"pushed_at":"2024-10-19T07:01:48.000Z","size":35682,"stargazers_count":41,"open_issues_count":0,"forks_count":28,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T05:14:03.038Z","etag":null,"topics":["bkash","bkash-payment","bkash-payment-gateway","bkash-pgw","flutter","tokenize"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/chayanforyou.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":"2021-02-07T05:52:44.000Z","updated_at":"2024-10-19T07:01:52.000Z","dependencies_parsed_at":"2024-04-21T10:40:53.237Z","dependency_job_id":"c4ac84fa-6315-485f-bae1-78f37dcebbd8","html_url":"https://github.com/chayanforyou/bkash-pgwclient-demo-flutter","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"9ac6e158ad2518c95838d6d73767733cfc13feba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chayanforyou/bkash-pgwclient-demo-flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayanforyou%2Fbkash-pgwclient-demo-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayanforyou%2Fbkash-pgwclient-demo-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayanforyou%2Fbkash-pgwclient-demo-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayanforyou%2Fbkash-pgwclient-demo-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chayanforyou","download_url":"https://codeload.github.com/chayanforyou/bkash-pgwclient-demo-flutter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayanforyou%2Fbkash-pgwclient-demo-flutter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267998186,"owners_count":24178478,"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-07-31T02:00:08.723Z","response_time":66,"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":["bkash","bkash-payment","bkash-payment-gateway","bkash-pgw","flutter","tokenize"],"created_at":"2024-11-14T14:22:57.768Z","updated_at":"2025-07-31T06:33:37.418Z","avatar_url":"https://github.com/chayanforyou.png","language":"Dart","funding_links":[],"categories":["Fintech \u0026 Payments"],"sub_categories":["🚀 How to contribute"],"readme":"## Easy bKash integration with Flutter\n\n[![GitHub license](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)]()  [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)]() [![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) [![made-with-love](https://img.shields.io/badge/Made%20with-Love-1f425f.svg)](https://chayanforyou.github.io/)\n\n\nA simple implementation of bKash payment gateway in flutter with tokenized checkout feature.\n\n## Features\n\n* A Simple App with a button to `Checkout`\n* Pressing the button initiates bKash payment dialogs\n* Returns a success message with tranId if payment is successful\n\n## Usage\n\nOfficial link for API documentation and demo checkout\n\n* [bKash API Specifications](https://developer.bka.sh/v1.2.0-beta/reference)\n* [bKash Checkout Demo](https://merchantdemo.sandbox.bka.sh)\n\n### Production\n\nReplace the credentials for production uses in `bkash_credentials.dart` with your own bKash credentials and change the parameter `isSandbox: false`.\n\n```dart\n  static const String username = 'app_username';\n  static const String password = 'app_password';\n  static const String appKey = 'app_key';\n  static const String appSecret = 'app_secret';\n```\n### Pay With bKash\n\nBasically this the implementation of payment without an agreement. Use the `makePayment` method to pay\n\n#### Request\n\n```dart\nfinal result = await bkashApi.makePayment(\n    context: context,\n    amount: 50.0,\n    payerReference: \"01770618575\",\n    merchantInvoiceNumber: \"INV-123\",\n    isSandbox: false,\n  );\n```\n#### Response\n\n```json\n{\n  \"amount\": \"50.0\",\n  \"trxId\": \"BJJ90KGFBH\",\n  \"paymentId\": \"TR0011HjY1p6A1729311405472\",\n  \"payerReference\": \"01770618575\",\n  \"customerMsisdn\": \"01770618575\",\n  \"merchantInvoiceNumber\": \"INV-123\",\n  \"paymentExecuteTime\": \"2024-10-19T10:17:14:333\"\n}\n```\n\n## Error Handling\n\nIn case of any error it's throw `PaymentException`. You can handle the exception using a try-catch block.\n\n```dart\ntry {\n  // Make a payment\n} on PaymentException catch (e) {\n  // Handle the error\n  log(e.message);\n}\n```\n\n## Video Demo\n\nhttps://github.com/chayanforyou/bkash-pgwclient-demo-flutter/assets/12654289/9f81977b-b6f8-45c2-9746-93f1a1ad987c\n\n## Contributing\n\nContributions to this project you always are welcome. Please note the standard guidelines before submitting your pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayanforyou%2Fbkash-pgwclient-demo-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchayanforyou%2Fbkash-pgwclient-demo-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayanforyou%2Fbkash-pgwclient-demo-flutter/lists"}