Skip to content

Commit

Permalink
refactor(app): update config. package-lock, and controllers
Browse files Browse the repository at this point in the history
Updated config.json.example, package-lock.json, package.json, controllers/api-v3/groups.js. Removed controllers/top-level/payments/amazon.js
  • Loading branch information
CuriousMagpie committed Nov 21, 2024
1 parent a7fb8f7 commit 76f9525
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 198 deletions.
5 changes: 0 additions & 5 deletions config.json.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"ACCOUNT_MIN_CHAT_AGE": "0",
"ADMIN_EMAIL": "[email protected]",
"AMAZON_PAYMENTS_CLIENT_ID": "CLIENT_ID",
"AMAZON_PAYMENTS_MODE": "sandbox",
"AMAZON_PAYMENTS_MWS_KEY": "MWS_KEY",
"AMAZON_PAYMENTS_MWS_SECRET": "MWS_SECRET",
"AMAZON_PAYMENTS_SELLER_ID": "SELLER_ID",
"AMPLITUDE_KEY": "AMPLITUDE_KEY",
"AMPLITUDE_SECRET": "AMPLITUDE_SECRET",
"BASE_URL": "http://localhost:3000",
Expand Down
22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"@parse/node-apn": "^5.2.3",
"@slack/webhook": "^6.1.0",
"accepts": "^1.3.8",
"amazon-payments": "^0.2.9",
"amplitude": "^6.0.0",
"apidoc": "^0.54.0",
"apple-auth": "^1.0.9",
Expand Down
20 changes: 0 additions & 20 deletions website/server/controllers/api-v3/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
import common from '../../../common';
import payments from '../../libs/payments/payments';
import stripePayments from '../../libs/payments/stripe';
import amzLib from '../../libs/payments/amazon';
import { apiError } from '../../libs/apiError';
import { model as UserNotification } from '../../models/userNotification';

Expand Down Expand Up @@ -242,25 +241,6 @@ api.createGroupPlan = {
sessionId: session.id,
group: groupResponse,
});
} else if (req.body.paymentType === 'Amazon') {
const { billingAgreementId } = req.body;
const sub = req.body.subscription
? common.content.subscriptionBlocks[req.body.subscription]
: false;
const { coupon } = req.body;
const groupId = savedGroup._id;
const { headers } = req;

await amzLib.subscribe({
billingAgreementId,
sub,
coupon,
user,
groupId,
headers,
});

res.respond(201, groupResponse);
}
},
};
Expand Down
150 changes: 0 additions & 150 deletions website/server/controllers/top-level/payments/amazon.js

This file was deleted.

0 comments on commit 76f9525

Please sign in to comment.