Skip to content

Commit

Permalink
Merge branch 'feature/google-defer' of https://github.com/VK432/node-iap
Browse files Browse the repository at this point in the history
 into feature/google-defer
  • Loading branch information
Varadhan Kalidasan committed Nov 15, 2019
2 parents b61a813 + 01190f5 commit b1a1612
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Google exposes [an API for deferral](https://developers.google.com/android-publi
```javascript
var deferralInfo = {
expectedExpiryTimeMillis: 1546616722237,
desiredExpiryTimeMillis: 1547716722237,
desiredExpiryTimeMillis: 1547716722237,
};
iap.deferSubscription("google", payment, deferralInfo, function (error, response) {
/* your code */
Expand Down
3 changes: 0 additions & 3 deletions lib/google/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ exports.purchasesSubscriptionsGet = function (packageName, productId, receipt, a
);
};


// Android Subscriptions URLs & generators
exports.purchasesSubscriptionsCancel = function (packageName, productId, receipt, accessToken) {
const urlFormat = 'https://www.googleapis.com/androidpublisher/v3/applications/%s/purchases/subscriptions/%s/tokens/%s:cancel?access_token=%s';

Expand All @@ -52,7 +50,6 @@ exports.purchasesSubscriptionsCancel = function (packageName, productId, receipt
);
};


// Android Subscriptions URLs & generators
exports.purchasesSubscriptionsDefer = function (packageName, productId, receipt, accessToken) {
const urlFormat = 'https://www.googleapis.com/androidpublisher/v3/applications/%s/purchases/subscriptions/%s/tokens/%s:defer?access_token=%s';
Expand Down

0 comments on commit b1a1612

Please sign in to comment.