{"id":13380282,"url":"https://github.com/lykhonis/flutter_billing","last_synced_at":"2026-02-27T01:02:30.165Z","repository":{"id":56829173,"uuid":"117569549","full_name":"lykhonis/flutter_billing","owner":"lykhonis","description":"Flutter plugin to enable billing on iOS and Android.","archived":false,"fork":false,"pushed_at":"2020-04-06T10:48:33.000Z","size":191,"stargazers_count":94,"open_issues_count":8,"forks_count":22,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-13T11:56:23.583Z","etag":null,"topics":["dart","dartlang","flutter","in-app-billing","in-app-purchase"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lykhonis.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}},"created_at":"2018-01-15T16:34:56.000Z","updated_at":"2023-09-05T12:10:23.000Z","dependencies_parsed_at":"2022-08-26T13:51:24.597Z","dependency_job_id":null,"html_url":"https://github.com/lykhonis/flutter_billing","commit_stats":null,"previous_names":["volodymyrlykhonis/flutter_billing"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/lykhonis/flutter_billing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykhonis%2Fflutter_billing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykhonis%2Fflutter_billing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykhonis%2Fflutter_billing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykhonis%2Fflutter_billing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lykhonis","download_url":"https://codeload.github.com/lykhonis/flutter_billing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykhonis%2Fflutter_billing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278395109,"owners_count":25979684,"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-10-04T02:00:05.491Z","response_time":63,"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":["dart","dartlang","flutter","in-app-billing","in-app-purchase"],"created_at":"2024-07-30T09:00:27.253Z","updated_at":"2025-10-05T00:25:36.300Z","avatar_url":"https://github.com/lykhonis.png","language":"Java","funding_links":[],"categories":["Components"],"sub_categories":["Monetization"],"readme":"## flutter_billing\nA plugin for [Flutter](https://flutter.io) that enables communication with billing API in \n[iOS](https://developer.apple.com/in-app-purchase/) and \n[Android](https://developer.android.com/google/play/billing/billing_integrate.html).\n\nThis plugin implements in app purchases rather than Android Pay or Apple Pay. Both\nApple and Google collect fees upon each successful transaction made using this plugin.\n\n*Warning*: This plugin is still under development, some billing features are not available yet and\ntesting has been limited.\n[Feedback](https://github.com/VolodymyrLykhonis/flutter_billing/issues) and\n[Pull Requests](https://github.com/VolodymyrLykhonis/flutter_billing/pulls) are welcome.\n\n## Using\nAdd `flutter_billing` [![flutter_billing](https://img.shields.io/pub/v/flutter_billing.svg)](https://pub.dartlang.org/packages/flutter_billing) as a dependency in `pubspec.yaml`.\n\nCreate an instance of the plugin:\n```dart\nfinal Billing billing = new Billing(onError: (e) {\n  // optionally handle exception\n});\n```\n\nRequest available products for purchase:\n```dart\nfinal List\u003cBillingProduct\u003e products = await billing.getProducts(\u003cString\u003e[\n    'my.product.id',\n    'my.other.product.id',\n]);\n```\nor\n```dart\nfinal BillingProduct product = await billing.getProduct('my.product.id');\nif (product != null) {\n  // success\n} else {\n  // something went wrong\n}\n```\n\nRequest purchased products (each purchase is a product identifier):\n```dart\nfinal Set\u003cString\u003e purchases = await billing.getPurchases();\n```\n\nCheck if a product is already purchased:\n```dart\nfinal bool purchased = purchases.contains('my.product.id');\n```\nor\n```dart\nfinal bool purchases = await billing.isPurchased('my.product.id');\n```\n\nPurchase a product:\n```dart\nfinal bool purchased = await billing.purchase(productId);\n```\n\n## Limitations\nThis is just an initial version of the plugin. There are still some limitations:\n\n- ~~One time purchase products are not supported~~\n- ~~Consumable products are not supported~~\n- ~~Android subscription are not supported~~\n- ~~iOS receipt request is not supported~~\n- iOS subscriptions are not supported\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykhonis%2Fflutter_billing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flykhonis%2Fflutter_billing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykhonis%2Fflutter_billing/lists"}