spacelabdev / spacelab-react

5 stars 47 forks source link

Remove credentials from PaypalDonate.jsx #457

Open aanand93 opened 6 months ago

aanand93 commented 6 months ago

Remove the clientid key from this component and create a .env file to store the key.

Use REACT_APP_PAYPAL_CLIENT_ID as the variable that is created in the .env file attached to the key. This should look like this in the .env file: REACT_APP_PAYPAL_CLIENT_ID=key

Then replace the key in the PaypalDonate.jsx component with const clientid = process.env.REACT_APP_PAYPAL_CLIENT_ID