mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix(subs): append Gift for troubleshooting clarity
This commit is contained in:
@@ -144,7 +144,7 @@ api.checkout = {
|
||||
if (gift.type === 'subscription') method = 'createSubscription';
|
||||
gift.member = await User.findById(gift ? gift.uuid : undefined);
|
||||
data.gift = gift;
|
||||
data.paymentMethod = 'Amazon';
|
||||
data.paymentMethod = 'Amazon Payments (Gift)';
|
||||
}
|
||||
|
||||
await payments[method](data);
|
||||
|
||||
@@ -139,7 +139,7 @@ api.checkoutSuccess = {
|
||||
method = 'createSubscription';
|
||||
}
|
||||
|
||||
data.paymentMethod = 'PayPal';
|
||||
data.paymentMethod = 'PayPal (Gift)';
|
||||
data.gift = gift;
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ api.checkout = {
|
||||
let member = await User.findById(gift.uuid);
|
||||
gift.member = member;
|
||||
if (gift.type === 'subscription') method = 'createSubscription';
|
||||
data.paymentMethod = 'Stripe';
|
||||
data.paymentMethod = 'Stripe (Gift)';
|
||||
}
|
||||
|
||||
await payments[method](data);
|
||||
|
||||
Reference in New Issue
Block a user