fix cancelling stripe subscription

This commit is contained in:
Matteo Pagliazzi
2016-05-23 18:59:54 +02:00
parent 30c2d8e25f
commit 51254c26dc

View File

@@ -156,7 +156,7 @@ api.subscribeCancel = {
let customer = await stripe.customers.retrieve(user.purchased.plan.customeerId); let customer = await stripe.customers.retrieve(user.purchased.plan.customeerId);
await stripe.customers.del(user.purchased.plan.customerId); await stripe.customers.del(user.purchased.plan.customerId);
await payments.cancelSubscriptoin({ await payments.cancelSubscription({
user, user,
nextBill: customer.subscription.current_period_end * 1000, // timestamp in seconds nextBill: customer.subscription.current_period_end * 1000, // timestamp in seconds
paymentMethod: 'Stripe', paymentMethod: 'Stripe',