Created
June 17, 2021 16:36
-
-
Save simon-saliba/bdbfa651f3f63863eaf36d7d6a4366af to your computer and use it in GitHub Desktop.
App root file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { Elements } from "@stripe/react-stripe-js"; | |
import { loadStripe } from "@stripe/stripe-js"; | |
import CheckoutForm from "./components/CheckoutForm/CheckoutForm"; | |
const stripePromise = loadStripe( | |
"pk_test_51IyLknBE4nCaoI6V9xgxz1wcOou9Yx0NItfAkpgGffI3AALNVAZhl8Dp4fGtQs1XsASywXRiIapdjQyofsPsqyOy00uEgR8vBV" | |
); | |
const App = () => { | |
return ( | |
<Elements stripe={stripePromise}> | |
<CheckoutForm /> | |
</Elements> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment