{"id":32651065,"url":"https://github.com/tdascoli/rx3billing","last_synced_at":"2026-04-21T09:33:28.394Z","repository":{"id":78062285,"uuid":"311744637","full_name":"tdascoli/Rx3Billing","owner":"tdascoli","description":"RxJava 3 Android Billing wrapper","archived":false,"fork":false,"pushed_at":"2021-02-02T11:07:48.000Z","size":69,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T07:56:49.052Z","etag":null,"topics":["android","billing","inapp-billing","rx3billing","rxbilling","rxjava","rxjava3"],"latest_commit_sha":null,"homepage":"","language":"Java","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/tdascoli.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-10T18:07:30.000Z","updated_at":"2022-04-08T08:43:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb9cc818-19a3-4764-a6df-da500d03f285","html_url":"https://github.com/tdascoli/Rx3Billing","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tdascoli/Rx3Billing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdascoli%2FRx3Billing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdascoli%2FRx3Billing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdascoli%2FRx3Billing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdascoli%2FRx3Billing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdascoli","download_url":"https://codeload.github.com/tdascoli/Rx3Billing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdascoli%2FRx3Billing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["android","billing","inapp-billing","rx3billing","rxbilling","rxjava","rxjava3"],"created_at":"2025-10-31T07:56:24.908Z","updated_at":"2026-04-21T09:33:28.386Z","avatar_url":"https://github.com/tdascoli.png","language":"Java","funding_links":["https://ko-fi.com/H2H32EWM1'"],"categories":[],"sub_categories":[],"readme":"# Rx3Billing\n[![](https://jitpack.io/v/tdascoli/Rx3Billing.svg)](https://jitpack.io/#tdascoli/Rx3Billing)\n\n[RxJava 3.0](https://github.com/ReactiveX/RxJava/tree/3.x) wrapper on Google Play Billing library.\n\nThis repository started as a personal usage of github user [hero](https://github.com/mu29) rx-billing library. You can check his work [here](https://github.com/mu29/rx-billing).\n\n## Download\n\n##### Gradle:\n\n```groovy\ndependencies {\n  implementation 'com.github.tdascoli:Rx3Billing:1.0.3'\n}\n```\n```\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\n## Usage\n\n### Initialize RxBilling Instance\n\n```java\n\nRxBilling billingClient;\n\n@Override\npublic void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    ...\n    billingClient = new RxBilling().set(this);\n}\n```\n\n...or you can inject with dagger\n\n```java\n@Provides\n@PerApplication\npublic RxBilling provideRxBilling() {\n    return new RxBilling()\n}\n```\n\n```java\n@Inject\nRxBilling billingClient;\n\n@Override\npublic void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    ...\n    billingClient.set(this);\n}\n```\n\n### Purchase\n\n```java\nbillingClient\n    .purchase(\"product.test.1\", null, BillingClient.SkuType.INAPP)\n    .subscribe(purchases -\u003e Log.d(\"IAP\", purchases.get(0).getOrderId()));\n```\n\n### Query purchases\n\n```java\nbillingClient\n    .queryPurchases()\n    .subscribe(purchases -\u003e {\n        for (Purchase purchase : purchases) {\n            Log.d(\"IAP\", purchase.getOrderId());\n        }\n    });\n```\n\n### Get sku details\n\n```java\nList\u003cString\u003e ids = new ArrayList\u003c\u003e();\nids.add(\"test.product.1\");\n\nbillingClient\n    .getSkuDetails(ids)\n    .subscribe(details -\u003e {\n        for (SkuDetails detail: details) {\n            Log.d(\"IAP\", detail.getPrice());\n        }\n    });\n```\n\n### Consume\n\n```java\nbillingClient\n    .consume(\"purchaseToken\")\n    .subscribe(token -\u003e Log.d(\"IAP\", token));\n```\n\n\u003ca href='https://ko-fi.com/H2H32EWM1' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi1.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n## License\n\n\tMIT License\n\n\tCopyright (c) 2020 Thomas D'Ascoli\n\n\tPermission is hereby granted, free of charge, to any person obtaining a \n\tcopy of this software and associated documentation files (the \"Software\"), \n\tto deal in the Software without restriction, including without limitation \n\tthe rights to use, copy, modify, merge, publish, distribute, sublicense, \n\tand/or sell copies of the Software, and to permit persons to whom the \n\tSoftware is furnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included \n\tin all copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n\tOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n\tTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \n\tFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR \n\tOTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdascoli%2Frx3billing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdascoli%2Frx3billing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdascoli%2Frx3billing/lists"}