{"id":19196134,"url":"https://github.com/nsneruno/qris","last_synced_at":"2025-04-10T05:45:35.193Z","repository":{"id":62458287,"uuid":"469835996","full_name":"nsNeruno/qris","owner":"nsNeruno","description":"QR Code Indonesian Standard Interpreter. Written in Dart.","archived":false,"fork":false,"pushed_at":"2023-10-26T12:04:53.000Z","size":117,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T06:54:45.257Z","etag":null,"topics":["dart","flutter","indonesian-api","parser-library","payment-protocol","qris"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/nsNeruno.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-03-14T17:23:43.000Z","updated_at":"2024-11-06T13:24:04.000Z","dependencies_parsed_at":"2025-01-04T20:04:29.306Z","dependency_job_id":null,"html_url":"https://github.com/nsNeruno/qris","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/nsNeruno%2Fqris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsNeruno%2Fqris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsNeruno%2Fqris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsNeruno%2Fqris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsNeruno","download_url":"https://codeload.github.com/nsNeruno/qris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166881,"owners_count":21058479,"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":["dart","flutter","indonesian-api","parser-library","payment-protocol","qris"],"created_at":"2024-11-09T12:12:44.602Z","updated_at":"2025-04-10T05:45:35.170Z","avatar_url":"https://github.com/nsNeruno.png","language":"Dart","readme":"# qris [![Pub](https://img.shields.io/pub/v/qris.svg)](https://pub.dartlang.org/packages/qris)\n\nQR Code Indonesian Standard Interpreter.\n\n## Features\n\nThis package enables to break down a valid read QRIS (QR Indonesian Standard) Code into pieces of useful information, such as the QRIS type, merchant name, transaction amount, and various merchant information.\n\n## Usage\nFor example, given a String read by any QR Reading utilities, stored as variable ``qrisData``\n```terminal\n00020101021126550016ID.CO.SHOPEE.WWW0118936009180000000018020218\n0303UBE51440014ID.CO.QRIS.WWW0215ID20190022915550303UBE520483985\n3033605802ID5906Baznas6013Jakarta Pusat61051034062070703A016304A\n402\n```\n\n```dart\nfinal qris = QRIS(qrisData,);\ndebugPrint(\n  qris.merchantName,\n);\n// Baznas\n      \nqris.merchants.forEach(\n  (merchant) {\n    debugPrint(\n      \"${merchant.globallyUniqueIdentifier} | ${merchant.merchantCriteria.toString()}\",\n    );\n  },\n);\n// ID.CO.SHOPEE.WWW | QRISMerchantCriteria.large\n      \ndebugPrint(\nqris.pointOfInitiation?.toString(),\n);\n// QRISInitiationPoint.staticCode\n```\n\n## Additional information\n\n### Reading from Image File/Gallery\nI recommend to try out [barcode_finder](https://pub.dev/packages/barcode_finder). \nHere's the modified sample usage of that plugin. (The example implements \n[file_picker](https://pub.dev/packages/file_picker) to pick a file, you may replace it with \n[image_picker](https://pub.dev/packages/image_picker))\n```dart\nFuture\u003cQRIS?\u003e scanFile() async {\n  // Used to pick a file from device storage\n  final pickedFile = await FilePicker.platform.pickFiles();\n  if (pickedFile != null) {\n    final filePath = pickedFile.files.single.path;\n    if (filePath != null) {\n      final scannedData = await BarcodeFinder.scanFile(\n        path: path,\n        formats: [BarcodeFormat.QR_CODE],\n      );\n      if (scannedData != null) {\n        return QRIS(scannedData,);\n      }\n    }\n  }\n  return null;\n}\n```\n\n### Personal Notes\nI documented most of the fields available, but if I miss something, will add in the future. I am \nalso welcome for suggestion regarding documenting the fields.\n\n## TO-DOs\n- Adding more factory constructors/object copy utilities\n- Add a QR Code generator from data\n- Usage guide localized in Bahasa","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsneruno%2Fqris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsneruno%2Fqris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsneruno%2Fqris/lists"}