From 2fb25207bb6bbc76230d8158774a4feb1c88c5ea Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sun, 5 Jul 2015 11:17:40 +0200 Subject: [PATCH] fix(amazon-payments): use lastBillingDate --- website/src/controllers/payments/amazon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/controllers/payments/amazon.js b/website/src/controllers/payments/amazon.js index 79db58ee39..14fa7e6417 100644 --- a/website/src/controllers/payments/amazon.js +++ b/website/src/controllers/payments/amazon.js @@ -237,8 +237,8 @@ exports.subscribeCancel = function(req, res, next){ cancelSubscription: function(cb){ var data = { user: user, - // Date of next bill, dateUpdated can be used because it's only updated when the user is billed - nextBill: moment(user.purchased.plan.dateUpdated).add({days: 30}), + // Date of next bill + nextBill: moment(user.purchased.plan.lastBillingDate).add({days: 30}), paymentMethod: 'Amazon Payments' };