Skip to content

Commit

Permalink
fixed donation stripe apikey .env file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Aifert committed Mar 12, 2024
1 parent c62b210 commit 88dd8f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/donation/donation-stripe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ const handleCheckout = async ({
interval: string;
}) => {
// Load the Stripe library with the publishable key
const stripe = await loadStripe("pk_test_L1f0e3XAzjsG7jtp4uN7L9ql");
const stripe = await loadStripe(
process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!
);

// Make a POST request to the '/api/checkout_sessions' endpoint
const response = await fetch("/api/checkout_sessions/checkout_session", {
Expand Down

0 comments on commit 88dd8f5

Please sign in to comment.