Corrected transaction descriptions (#7744)

* fix(subscriptions): Habitica not HabitRPG

* fix(subscriptions): Habitica in Amazon
This commit is contained in:
Sabe Jones
2016-07-01 19:40:23 -05:00
committed by GitHub
parent 986d583ff9
commit c871d8877c
2 changed files with 13 additions and 13 deletions

View File

@@ -105,10 +105,10 @@ api.checkout = {
CurrencyCode: 'USD',
Amount: amount,
},
SellerNote: 'HabitRPG Payment',
SellerNote: 'Habitica Payment',
SellerOrderAttributes: {
SellerOrderId: shared.uuid(),
StoreName: 'HabitRPG',
StoreName: 'Habitica',
},
},
});
@@ -122,7 +122,7 @@ api.checkout = {
CurrencyCode: 'USD',
Amount: amount,
},
SellerAuthorizationNote: 'HabitRPG Payment',
SellerAuthorizationNote: 'Habitica Payment',
TransactionTimeout: 0,
CaptureNow: true,
});
@@ -177,11 +177,11 @@ api.subscribe = {
await amzLib.setBillingAgreementDetails({
AmazonBillingAgreementId: billingAgreementId,
BillingAgreementAttributes: {
SellerNote: 'HabitRPG Subscription',
SellerNote: 'Habitica Subscription',
SellerBillingAgreementAttributes: {
SellerBillingAgreementId: shared.uuid(),
StoreName: 'HabitRPG',
CustomInformation: 'HabitRPG Subscription',
StoreName: 'Habitica',
CustomInformation: 'Habitica Subscription',
},
},
});
@@ -197,13 +197,13 @@ api.subscribe = {
CurrencyCode: 'USD',
Amount: sub.price,
},
SellerAuthorizationNote: 'HabitRPG Subscription Payment',
SellerAuthorizationNote: 'Habitica Subscription Payment',
TransactionTimeout: 0,
CaptureNow: true,
SellerNote: 'HabitRPG Subscription Payment',
SellerNote: 'Habitica Subscription Payment',
SellerOrderAttributes: {
SellerOrderId: shared.uuid(),
StoreName: 'HabitRPG',
StoreName: 'Habitica',
},
});

View File

@@ -63,14 +63,14 @@ api.checkout = {
req.session.gift = req.query.gift;
let amount = 5.00;
let description = 'HabitRPG gems';
let description = 'Habitica Gems';
if (gift) {
if (gift.type === 'gems') {
amount = Number(gift.gems.amount / 4).toFixed(2);
description = `${description} (Gift)`;
} else {
amount = Number(shared.content.subscriptionBlocks[gift.subscription.key].price).toFixed(2);
description = 'mo. HabitRPG Subscription (Gift)';
description = 'mo. Habitica Subscription (Gift)';
}
}
@@ -166,7 +166,7 @@ api.subscribe = {
if (!coupon) throw new NotAuthorized(res.t('invalidCoupon'));
}
let billingPlanTitle = `HabitRPG Subscription ($${sub.price} every ${sub.months} months, recurring)`;
let billingPlanTitle = `Habitica Subscription ($${sub.price} every ${sub.months} months, recurring)`;
let billingAgreementAttributes = {
name: billingPlanTitle,
description: billingPlanTitle,
@@ -248,7 +248,7 @@ api.subscribeCancel = {
},
};
// General IPN handler. We catch cancelled HabitRPG subscriptions for users who manually cancel their
// General IPN handler. We catch cancelled Habitica subscriptions for users who manually cancel their
// recurring paypal payments in their paypal dashboard. TODO ? Remove this when we can move to webhooks or some other solution
/**