Skip to content

Commit

Permalink
Merge branch 'fix/rerefresh-madness'
Browse files Browse the repository at this point in the history
  • Loading branch information
j3k0 committed May 21, 2016
2 parents 064369b + 7345153 commit 8aae582
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/js/platforms/ios-bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,15 @@ InAppPurchase.prototype.refreshReceipts = function(successCb, errorCb) {
var bundleSignature = args[4];
log('infoPlist: ' + bundleIdentifier + "," + bundleShortVersion + "," + bundleNumericVersion + "," + bundleSignature);
that.setAppStoreReceipt(base64);
protectCall(that.options.receiptsRefreshed, 'options.receiptsRefreshed', {
var data = {
appStoreReceipt: base64,
bundleIdentifier: bundleIdentifier,
bundleShortVersion: bundleShortVersion,
bundleNumericVersion: bundleNumericVersion,
bundleSignature: bundleSignature
});
protectCall(successCb, "refreshReceipts.success", base64);
};
protectCall(that.options.receiptsRefreshed, 'options.receiptsRefreshed', data);
protectCall(successCb, "refreshReceipts.success", data);
};

var error = function(errMessage) {
Expand Down

0 comments on commit 8aae582

Please sign in to comment.