mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Added coupon purchasing back to stripe (#9794)
This commit is contained in:
@@ -32,7 +32,7 @@ api.checkout = {
|
||||
let gift = req.query.gift ? JSON.parse(req.query.gift) : undefined;
|
||||
let sub = req.query.sub ? shared.content.subscriptionBlocks[req.query.sub] : false;
|
||||
let groupId = req.query.groupId;
|
||||
let coupon;
|
||||
let coupon = req.query.coupon;
|
||||
|
||||
await stripePayments.checkout({token, user, gift, sub, groupId, coupon});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user