From b561599614fc71082ab9e3eb4bb3dc70df6476b0 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Fri, 20 Mar 2020 21:29:32 +0300 Subject: [PATCH] fix(donate): re-enable monthly donations and update plans --- .../components/Donation/MinimalDonateForm.js | 4 +-- config/donation-settings.js | 28 +++++++++++++------ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/client/src/components/Donation/MinimalDonateForm.js b/client/src/components/Donation/MinimalDonateForm.js index d2e10b8670..52bafec0e6 100644 --- a/client/src/components/Donation/MinimalDonateForm.js +++ b/client/src/components/Donation/MinimalDonateForm.js @@ -131,7 +131,7 @@ class MinimalDonateForm extends Component { - Confirm your donation of $60 / year with PayPal: + Confirm your donation of $5 / year with PayPal: - `Confirm your donation of $60 / year` + `Confirm your donation of $5 / year` } handleProcessing={handleProcessing} /> diff --git a/config/donation-settings.js b/config/donation-settings.js index 9083d49436..688aa9936b 100644 --- a/config/donation-settings.js +++ b/config/donation-settings.js @@ -4,26 +4,26 @@ require('dotenv').config({ path: path.resolve(__dirname, '../.env') }); // Configuration for client side const durationsConfig = { year: 'yearly', - // month: 'monthly', // We have disabled montly payments + month: 'monthly', onetime: 'one-time' }; const amountsConfig = { year: [100000, 25000, 6000], - month: [5000, 3500, 500], + month: [25000, 3500, 500], onetime: [100000, 25000, 6000] }; const defaultAmount = { - year: 6000, + year: 25000, month: 3500, onetime: 25000 }; const defaultStateConfig = { - donationAmount: defaultAmount['year'], - donationDuration: 'year' + donationAmount: defaultAmount['month'], + donationDuration: 'month' }; const modalDefaultStateConfig = { - donationAmount: 6000, - donationDuration: 'year' + donationAmount: 500, + donationDuration: 'month' }; // Configuration for server side @@ -36,7 +36,7 @@ const donationSubscriptionConfig = { }, plans: { year: [100000, 25000, 6000], - month: [5000, 3500, 500] + month: [25000, 3500, 500] } }; @@ -46,6 +46,12 @@ const paypalConfigTypes = { month: { '500': { planId: 'P-1L11422374370240ULZKX3PA' + }, + '3500': { + planId: 'P-1L11422374370240ULZKX3PA' + }, + '25000': { + planId: 'P-1L11422374370240ULZKX3PA' } }, year: { @@ -64,6 +70,12 @@ const paypalConfigTypes = { month: { '500': { planId: 'P-37N14480BW163382FLZYPVMA' + }, + '3500': { + planId: 'P-3E678937P5715503NLZZTRVY' + }, + '25000': { + planId: 'P-97K80194AU368022JLZ2Q27Y' } }, year: {