mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix cancelling stripe subscription
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user