Skip to content

Commit 859f4c5

Browse files
author
Varadhan Kalidasan
committed
Merge branch 'feature/google-defer' of https://github.com/VK432/node-iap into feature/google-defer
2 parents b61a813 + 01190f5 commit 859f4c5

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Google exposes [an API for deferral](https://developers.google.com/android-publi
6464
```javascript
6565
var deferralInfo = {
6666
expectedExpiryTimeMillis: 1546616722237,
67-
desiredExpiryTimeMillis: 1547716722237,
67+
desiredExpiryTimeMillis: 1547716722237,
6868
};
6969
iap.deferSubscription("google", payment, deferralInfo, function (error, response) {
7070
/* your code */

lib/google/urls.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ exports.purchasesSubscriptionsGet = function (packageName, productId, receipt, a
3838
);
3939
};
4040

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

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

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "iap",
2+
"name": "@emma-app/iap",
33
"version": "1.1.1",
44
"description": "In-app purchase validation for Apple, Google, Amazon, Roku",
55
"main": "index.js",

0 commit comments

Comments
 (0)