fix(subs): append Gift for troubleshooting clarity

This commit is contained in:
Sabe Jones
2016-12-09 02:35:51 +00:00
parent 59709a8590
commit 10dd3318ab
3 changed files with 3 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ api.checkout = {
if (gift.type === 'subscription') method = 'createSubscription'; if (gift.type === 'subscription') method = 'createSubscription';
gift.member = await User.findById(gift ? gift.uuid : undefined); gift.member = await User.findById(gift ? gift.uuid : undefined);
data.gift = gift; data.gift = gift;
data.paymentMethod = 'Amazon'; data.paymentMethod = 'Amazon Payments (Gift)';
} }
await payments[method](data); await payments[method](data);

View File

@@ -139,7 +139,7 @@ api.checkoutSuccess = {
method = 'createSubscription'; method = 'createSubscription';
} }
data.paymentMethod = 'PayPal'; data.paymentMethod = 'PayPal (Gift)';
data.gift = gift; data.gift = gift;
} }

View File

@@ -105,7 +105,7 @@ api.checkout = {
let member = await User.findById(gift.uuid); let member = await User.findById(gift.uuid);
gift.member = member; gift.member = member;
if (gift.type === 'subscription') method = 'createSubscription'; if (gift.type === 'subscription') method = 'createSubscription';
data.paymentMethod = 'Stripe'; data.paymentMethod = 'Stripe (Gift)';
} }
await payments[method](data); await payments[method](data);