mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Merge branch 'stripe-webhook' into develop
This commit is contained in:
@@ -3,35 +3,47 @@ import each from 'lodash/each';
|
||||
|
||||
let subscriptionBlocks = {
|
||||
basic_earned: {
|
||||
target: 'user',
|
||||
canSubscribe: true,
|
||||
months: 1,
|
||||
price: 5,
|
||||
},
|
||||
basic_3mo: {
|
||||
target: 'user',
|
||||
canSubscribe: true,
|
||||
months: 3,
|
||||
price: 15,
|
||||
},
|
||||
basic_6mo: {
|
||||
target: 'user',
|
||||
canSubscribe: true,
|
||||
months: 6,
|
||||
price: 30,
|
||||
},
|
||||
google_6mo: {
|
||||
target: 'user',
|
||||
canSubscribe: true,
|
||||
months: 6,
|
||||
price: 24,
|
||||
discount: true,
|
||||
original: 30,
|
||||
},
|
||||
basic_12mo: {
|
||||
target: 'user',
|
||||
canSubscribe: true,
|
||||
months: 12,
|
||||
price: 48,
|
||||
},
|
||||
group_monthly: {
|
||||
type: 'group',
|
||||
target: 'group',
|
||||
canSubscribe: true,
|
||||
months: 1,
|
||||
price: 9,
|
||||
quantity: 3, // Default quantity for Stripe - The same as having 3 user subscriptions
|
||||
},
|
||||
group_plan_auto: {
|
||||
type: 'group',
|
||||
target: 'user',
|
||||
canSubscribe: false,
|
||||
months: 0,
|
||||
price: 0,
|
||||
quantity: 1,
|
||||
|
||||
Reference in New Issue
Block a user