fix(PayPal): update config pickup from env (#38423)

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
This commit is contained in:
mrugesh
2020-03-23 19:33:37 +05:30
committed by GitHub
parent 1f2a93b646
commit 786626f21e
3 changed files with 14 additions and 16 deletions

View File

@@ -21,7 +21,8 @@ const {
SERVICEBOT_ID: servicebotId,
ALGOLIA_APP_ID: algoliaAppId,
ALGOLIA_API_KEY: algoliaAPIKey,
PAYPAL_CLIENT_ID: paypalClientId
PAYPAL_CLIENT_ID: paypalClientId,
DEPLOYMENT_ENV: deploymentEnv
} = process.env;
const locations = {
@@ -35,6 +36,7 @@ const locations = {
module.exports = Object.assign(locations, {
locale,
deploymentEnv,
stripePublicKey:
!stripePublicKey || stripePublicKey === 'pk_from_stripe_dashboard'
? null