diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 52100b0..30d0b7f 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -24,6 +24,7 @@ import PaymentModal from "../Modals/PaymentModal"; import Radio from "../../pageElements/Radio"; import "../../styles/signup.scss"; import Stripe from "stripe"; +import { stripeApiKey } from "../../secrets"; const SignupPage = () => { const navigate = useNavigate(); @@ -39,10 +40,8 @@ const SignupPage = () => { const [activeRadioOption, setActiveRadioOption] = useState("monthlyBasic"); const modalText = "Description of monthly and annual subscriptions"; const [selectedPlan, setSelectedPlan] = useState({}); - // this could also go in App.js if needed in the future - const stripe = new Stripe( - "pk_test_51NNoasBi8p7FeGFrI5SfpM6HuNMoxwImx6NRKyKbgbt6OPxMxQDiZ9I1GqvDa9qUwB3D3jlJOng6MyjPppWofxzP00Exvr8dBy" - ); + // Could also go in App.js if needed in the future + const stripe = new Stripe(stripeApiKey); const apiUrl = process.env.NODE_ENV === "development" @@ -371,9 +370,9 @@ const SignupPage = () => { {showSelectPlan ? (