Skip to content

Instantly share code, notes, and snippets.

@SimonHoiberg
Created June 19, 2020 14:57
Show Gist options
  • Save SimonHoiberg/90b0f853b93c0251e1b8619effbb9daa to your computer and use it in GitHub Desktop.
Save SimonHoiberg/90b0f853b93c0251e1b8619effbb9daa to your computer and use it in GitHub Desktop.
const stripePromise = loadStripe(process.env.REACT_APP_STRIPE_KEY || '');
const Upgrade = () => {
return (
<div>
<h1>Upgrade now</h1>
<Elements stripe={stripePromise}>
<CheckoutForm />
</Elements>
</div>
);
};
const CheckoutForm = () => {
// Not implemented yet
};
export default Upgrade;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment