mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 05:38:46 +00:00
fix(iap): iap verification fixes
This commit is contained in:
parent
bb37c163cf
commit
f9cc2adda5
1 changed files with 3 additions and 5 deletions
|
|
@ -67,9 +67,8 @@ exports.androidVerify = function(req, res, next) {
|
|||
data: googleRes
|
||||
};
|
||||
|
||||
payments.buyGems(user, {customerId:user.id, paymentMethod:'IAP GooglePlay'});
|
||||
user.save();
|
||||
|
||||
payments.buyGems({user:user, paymentMethod:'IAP GooglePlay'});
|
||||
|
||||
// yay good!
|
||||
res.json(resObj);
|
||||
}
|
||||
|
|
@ -120,8 +119,7 @@ exports.iosVerify = function(req, res, next) {
|
|||
data: appleRes
|
||||
};
|
||||
|
||||
payments.buyGems(user, {customerId:user.id, paymentMethod:'IAP AppleStore'});
|
||||
user.save();
|
||||
payments.buyGems({user:user, paymentMethod:'IAP AppleStore'});
|
||||
|
||||
// yay good!
|
||||
res.json(resObj);
|
||||
|
|
|
|||
Loading…
Reference in a new issue