{"action":"closed","issue":{"url":"https://api.github.com/repos/AlexDisler/cordova-plugin-inapppurchase/issues/6","repository_url":"https://api.github.com/repos/AlexDisler/cordova-plugin-inapppurchase","labels_url":"https://api.github.com/repos/AlexDisler/cordova-plugin-inapppurchase/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/AlexDisler/cordova-plugin-inapppurchase/issues/6/comments","events_url":"https://api.github.com/repos/AlexDisler/cordova-plugin-inapppurchase/issues/6/events","html_url":"https://github.com/AlexDisler/cordova-plugin-inapppurchase/issues/6","id":143246187,"number":6,"title":"Subscription purchase returns error on Android (IAB returned null purchaseData or dataSignature)","user":{"login":"DigitalMystery","id":6118971,"avatar_url":"https://avatars.githubusercontent.com/u/6118971?v=3","gravatar_id":"","url":"https://api.github.com/users/DigitalMystery","html_url":"https://github.com/DigitalMystery","followers_url":"https://api.github.com/users/DigitalMystery/followers","following_url":"https://api.github.com/users/DigitalMystery/following{/other_user}","gists_url":"https://api.github.com/users/DigitalMystery/gists{/gist_id}","starred_url":"https://api.github.com/users/DigitalMystery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigitalMystery/subscriptions","organizations_url":"https://api.github.com/users/DigitalMystery/orgs","repos_url":"https://api.github.com/users/DigitalMystery/repos","events_url":"https://api.github.com/users/DigitalMystery/events{/privacy}","received_events_url":"https://api.github.com/users/DigitalMystery/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-24T13:30:16Z","updated_at":"2016-04-01T01:34:24Z","closed_at":"2016-04-01T01:34:24Z","body":"When purchasing a subscription the purchase goes thru, but I receive an error back which is listed below.  From what I could find it looks like the error means: \r\nlaunchPurchaseFlow is called instead of launchSubscriptionPurchaseFlow \r\nI did post a question on your blog but figured here is more fitting for the issue.\r\n\r\n-code\r\n` $scope.buyProduct = function(productId) {\r\n       inAppPurchase.buy(productId)\r\n            .then(function (data) {\r\n                $ionicLoading.show({\r\n                    noBackdrop: false,\r\n                    template: '<p class=\"icon ion-loading-a\"><ion-spinner class=\"spinner-assertive\" icon=\"bubbles\"/></p><br />Loading'\r\n                });\r\n                //I do my own server calls here\r\n            })\r\n            .catch(function (err) {\r\n                $ionicPopup.alert({\r\n                    title: err.code,\r\n                    content: err.message + ' ----- ' + err.response + ' ----- ' + err.text,\r\n                    cssClass: 'my-custom-popup'\r\n                });\r\n            });\r\n    }`\r\n\r\n-output\r\ncould not complete purchase ----- 1008  ----- IAB returned null purchaseData or dataSignature\r\n(response: - 1008:Unkown error)\r\n\r\n-type\r\nsubscription\r\n\r\n-version of Cordova\r\n6.0.0\r\n\r\n-version of Android\r\nAndroid 5.1.1\r\n"}}