mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
feat(event): 10th Birthday Bash
with @CuriousMagpie and @phillipthelen
This commit is contained in:
@@ -27,13 +27,13 @@ api.createCheckoutSession = {
|
||||
async handler (req, res) {
|
||||
const { user } = res.locals;
|
||||
const {
|
||||
gift, sub: subKey, gemsBlock, coupon, groupId,
|
||||
gift, sub: subKey, gemsBlock, coupon, groupId, sku,
|
||||
} = req.body;
|
||||
|
||||
const sub = subKey ? shared.content.subscriptionBlocks[subKey] : false;
|
||||
|
||||
const session = await stripePayments.createCheckoutSession({
|
||||
user, gemsBlock, gift, sub, groupId, coupon,
|
||||
user, gemsBlock, gift, sub, groupId, coupon, sku,
|
||||
});
|
||||
|
||||
res.respond(200, {
|
||||
|
||||
Reference in New Issue
Block a user