{"action":"created","issue":{"url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/issues/79","repository_url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase","labels_url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/issues/79/comments","events_url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/issues/79/events","html_url":"https://github.com/dooboolab/flutter_inapp_purchase/issues/79","id":429622971,"node_id":"MDU6SXNzdWU0Mjk2MjI5NzE=","number":79,"title":"After buying product, it throws PlatformException(InappPurchasePlugin, purchase error, responseCode:0)","user":{"login":"figengungor","id":3411015,"node_id":"MDQ6VXNlcjM0MTEwMTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3411015?v=4","gravatar_id":"","url":"https://api.github.com/users/figengungor","html_url":"https://github.com/figengungor","followers_url":"https://api.github.com/users/figengungor/followers","following_url":"https://api.github.com/users/figengungor/following{/other_user}","gists_url":"https://api.github.com/users/figengungor/gists{/gist_id}","starred_url":"https://api.github.com/users/figengungor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figengungor/subscriptions","organizations_url":"https://api.github.com/users/figengungor/orgs","repos_url":"https://api.github.com/users/figengungor/repos","events_url":"https://api.github.com/users/figengungor/events{/privacy}","received_events_url":"https://api.github.com/users/figengungor/received_events","type":"User","site_admin":false},"labels":[{"id":1019770256,"node_id":"MDU6TGFiZWwxMDE5NzcwMjU2","url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/labels/android","name":"android","color":"0e8a16","default":false,"description":"android related issue"},{"id":1001454984,"node_id":"MDU6TGFiZWwxMDAxNDU0OTg0","url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/labels/help%20wanted","name":"help wanted","color":"008672","default":true,"description":"Extra attention is needed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2019-04-05T07:39:31Z","updated_at":"2019-12-09T04:53:16Z","closed_at":"2019-09-16T23:00:56Z","author_association":"NONE","body":"### Version of flutter_inapp_purchase\r\nflutter_inapp_purchase: ^0.9.2\r\n\r\n### Platforms you faced the error (IOS or Android or both?)\r\nAndroid\r\n\r\n### Expected behavior\r\nAfter buying product I expect to get PurchasedItem.\r\n\r\n### Actual behavior\r\nAfter buying product I get the following exception: PlatformException(InappPurchasePlugin, purchase error, responseCode:0) which is logged here https://github.com/dooboolab/flutter_inapp_purchase/blob/ca88fda50229f090602ab3a6b186fff80536079d/android/src/main/java/com/dooboolab/flutterinapppurchase/AndroidInappPurchasePlugin.java#L430 indicates that products are null.\r\n\r\n### Tested environment (Emulator? Real Device?)\r\nReal Device\r\n\r\nflutter doctor -v\r\n\r\n```\r\n[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-TR)\r\n    • Flutter version 1.2.1 at /Users/figengungor/Documents/development/flutter\r\n    • Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800\r\n    • Engine revision 3757390fa4\r\n    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)\r\n    • Android SDK at /Users/figengungor/Library/Android/sdk\r\n    • Android NDK location not configured (optional; useful for native profiling support)\r\n    • Platform android-28, build-tools 28.0.3\r\n    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)\r\n    • All Android licenses accepted.\r\n\r\n[!] iOS toolchain - develop for iOS devices (Xcode 10.2)\r\n    • Xcode at /Applications/Xcode.app/Contents/Developer\r\n    • Xcode 10.2, Build version 10E125\r\n    ✗ Verify that all connected devices have been paired with this computer in Xcode.\r\n      If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.\r\n      To update with Brew, run:\r\n        brew update\r\n        brew uninstall --ignore-dependencies libimobiledevice\r\n        brew uninstall --ignore-dependencies usbmuxd\r\n        brew install --HEAD usbmuxd\r\n        brew unlink usbmuxd\r\n        brew link usbmuxd\r\n        brew install --HEAD libimobiledevice\r\n        brew install ideviceinstaller\r\n    • ios-deploy 2.0.0\r\n    • CocoaPods version 1.5.3\r\n\r\n[✓] Android Studio (version 3.3)\r\n    • Android Studio at /Applications/Android Studio.app/Contents\r\n    • Flutter plugin version 33.4.1\r\n    • Dart plugin version 182.5215\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)\r\n\r\n[✓] Connected device (1 available)\r\n    • LG H850 • LGH85074f531b6 • android-arm64 • Android 8.0.0 (API 26)\r\n```\r\n\r\n\r\n\r\n### Steps to reproduce the behavior\r\n\r\nCalling this function and after completing payment steps in test account and getting payment success, I got the mentioned PlatformException above.\r\n\r\n```\r\n Future<PurchasedItem> buyProduct(IAPItem data) async {\r\n    await _initConnection();\r\n    PurchasedItem purchasedItem =  await FlutterInappPurchase.buyProduct(data.productId);\r\n    if(purchasedItem!=null) _isSubscribedController.add(true);\r\n    await _endConnection();\r\n    return purchasedItem;\r\n  }\r\n\r\nFuture<String> _initConnection() async {\r\n    return FlutterInappPurchase.initConnection;\r\n  }\r\n\r\n  Future<String> _endConnection() async {\r\n    return FlutterInappPurchase.endConnection;\r\n  }\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/issues/comments/563062261","html_url":"https://github.com/dooboolab/flutter_inapp_purchase/issues/79#issuecomment-563062261","issue_url":"https://api.github.com/repos/dooboolab/flutter_inapp_purchase/issues/79","id":563062261,"node_id":"MDEyOklzc3VlQ29tbWVudDU2MzA2MjI2MQ==","user":{"login":"phuc-koli","id":55618058,"node_id":"MDQ6VXNlcjU1NjE4MDU4","avatar_url":"https://avatars1.githubusercontent.com/u/55618058?v=4","gravatar_id":"","url":"https://api.github.com/users/phuc-koli","html_url":"https://github.com/phuc-koli","followers_url":"https://api.github.com/users/phuc-koli/followers","following_url":"https://api.github.com/users/phuc-koli/following{/other_user}","gists_url":"https://api.github.com/users/phuc-koli/gists{/gist_id}","starred_url":"https://api.github.com/users/phuc-koli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuc-koli/subscriptions","organizations_url":"https://api.github.com/users/phuc-koli/orgs","repos_url":"https://api.github.com/users/phuc-koli/repos","events_url":"https://api.github.com/users/phuc-koli/events{/privacy}","received_events_url":"https://api.github.com/users/phuc-koli/received_events","type":"User","site_admin":false},"created_at":"2019-12-09T04:53:16Z","updated_at":"2019-12-09T04:53:16Z","author_association":"NONE","body":"@ollydixon \r\nDid you find the solution for \"This In-App Purchase Has Already Been Bought\" error?\r\n\r\n"}}
{"actor":{"display_login":"phuc-koli"}}