From 935e9fd6ec2688ac7339c56ce0ff03bfdae30c77 Mon Sep 17 00:00:00 2001 From: Kalista Payne Date: Fri, 18 Oct 2024 14:50:17 -0500 Subject: [PATCH] fix(subs): try again on gifts --- .../client/src/components/settings/subscriptionOptions.vue | 2 +- website/server/libs/payments/stripe/oneTimePayments.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/website/client/src/components/settings/subscriptionOptions.vue b/website/client/src/components/settings/subscriptionOptions.vue index 0333f3fc63..b17402c2d6 100644 --- a/website/client/src/components/settings/subscriptionOptions.vue +++ b/website/client/src/components/settings/subscriptionOptions.vue @@ -365,7 +365,7 @@ export default { return { gift: { type: 'subscription', - subscription: { key: 'basic_earned' }, + subscription: { key: 'basic_12mo' }, }, icons: Object.freeze({ check, diff --git a/website/server/libs/payments/stripe/oneTimePayments.js b/website/server/libs/payments/stripe/oneTimePayments.js index 616d029f73..f126d731e3 100644 --- a/website/server/libs/payments/stripe/oneTimePayments.js +++ b/website/server/libs/payments/stripe/oneTimePayments.js @@ -95,7 +95,10 @@ export async function applyGemPayment (session) { }; if (gift) { - if (gift.type === 'subscription') method = 'createSubscription'; + if (gift.type === 'subscription') { + method = 'createSubscription'; + data.autoRenews = false; + } data.paymentMethod = 'Gift'; const member = await User.findById(gift.uuid).exec();