mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
fix(subs): append Gift for troubleshooting clarity
This commit is contained in:
parent
59709a8590
commit
10dd3318ab
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue