{"action":"closed","issue":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/50","repository_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase","labels_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/50/comments","events_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/50/events","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/50","id":39948066,"number":50,"title":"noAutoFinish: \"finish\" callback is called when a purchase failed","user":{"login":"j3k0","id":191881,"avatar_url":"https://avatars.githubusercontent.com/u/191881?v=3","gravatar_id":"","url":"https://api.github.com/users/j3k0","html_url":"https://github.com/j3k0","followers_url":"https://api.github.com/users/j3k0/followers","following_url":"https://api.github.com/users/j3k0/following{/other_user}","gists_url":"https://api.github.com/users/j3k0/gists{/gist_id}","starred_url":"https://api.github.com/users/j3k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j3k0/subscriptions","organizations_url":"https://api.github.com/users/j3k0/orgs","repos_url":"https://api.github.com/users/j3k0/repos","events_url":"https://api.github.com/users/j3k0/events{/privacy}","received_events_url":"https://api.github.com/users/j3k0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-08-11T11:02:47Z","updated_at":"2016-05-15T06:26:07Z","closed_at":"2016-05-15T06:26:07Z","body":"@maxmoore14 : do you remember if it necessary to call StoreKit's finish on a failed transaction?\r\n\r\nhttps://github.com/j3k0/PhoneGap-InAppPurchase-iOS/blob/master/src/ios/InAppPurchase.m#L403-L407\r\n\r\nAnyway, I don't think user side's `finish()` callback should be called in that case, or maybe with a error code as a parameter. The behavior is especially weird when `storekit.purchase()` is called again by the user on a product with non-finished transaction in progress: this results in a failed transaction and user code's `finish()` callback called directly... Could be mind-bugging ;)\r\n\r\nAny thoughts?"}}