diff --git a/client/gatsby-node.js b/client/gatsby-node.js index b86ff00607..efdde019a0 100644 --- a/client/gatsby-node.js +++ b/client/gatsby-node.js @@ -186,8 +186,7 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => { HOME_PATH: JSON.stringify( process.env.HOME_PATH || 'http://localhost:3000' ), - STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''), - PAYPAL_SUPPORTERS: JSON.stringify(process.env.PAYPAL_SUPPORTERS || 404) + STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || '') }) ]; // The monaco editor relies on some browser only globals so should not be diff --git a/client/src/redux/index.js b/client/src/redux/index.js index 528bef8465..189cbf54a7 100644 --- a/client/src/redux/index.js +++ b/client/src/redux/index.js @@ -1,4 +1,3 @@ -/* global PAYPAL_SUPPORTERS */ import { createAction, handleActions } from 'redux-actions'; import { uniqBy } from 'lodash'; import store from 'store'; @@ -357,20 +356,6 @@ export const userSelector = state => { }; export const sessionMetaSelector = state => state[ns].sessionMeta; -export const activeDonationsSelector = state => { - const donors = - Number(sessionMetaSelector(state).activeDonations) + - Number(PAYPAL_SUPPORTERS || 0) - - // Note 1: - // Offset the no of inactive donations, that are not yet normalized in db - // TODO: This data needs to be fetched and updated in db from Stripe - 2500; - // Note 2: - // Due to the offset above, non-prod data needs to be adjusted for -ve values - return donors > 0 - ? donors - : Number(sessionMetaSelector(state).activeDonations); -}; function spreadThePayloadOnUser(state, payload) { return { diff --git a/sample.env b/sample.env index 5a5a285d3f..dbbf07b1a8 100644 --- a/sample.env +++ b/sample.env @@ -33,7 +33,6 @@ STRIPE_CREATE_PLANS=true STRIPE_PUBLIC_KEY=pk_from_stripe_dashboard STRIPE_SECRET_KEY=sk_from_stripe_dashboard # PayPal -PAYPAL_SUPPORTERS=1703 PAYPAL_CLIENT_ID=id_from_paypal_dashboard PAYPAL_SECRET=secret_from_paypal_dashboard PAYPAL_VERIFY_WEBHOOK_URL='https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature'