SANTA ELENA MONUMENT — STRIPE SETUP (TEST MODE) Site: https://thenewcanyonproject.online Contact: anushbadii@hotmail.com Use this only on your server-side code (never expose in HTML/JS): ----------------------------------------------------------------- STRIPE_SECRET (TEST) = sk_test_51SMr7gGnbMm9m7rT2EsPtGPPd3xXF9wPXt9q6HAkzbRjWsTSBxQ9w7ApReDfNZAvLjhgpY7BTLkGJRnF2uCkwE5D00jeXGUMP6 Public site settings -------------------- SITE_NAME = Santa Elena Monument — Private Donor Portal MIN_DONATION = 10 USD Example Node/Express endpoint (server-side only): ------------------------------------------------- import express from 'express'; import Stripe from 'stripe'; const stripe = new Stripe(process.env.STRIPE_SECRET); // set your secret in env const app = express(); app.use(express.json()); app.post('/api/create-checkout', async (req, res) => { const amount = Math.max( (req.body?.amount|0), 10 ) * 100; // cents const session = await stripe.checkout.sessions.create({ mode: 'payment', payment_method_types: ['card'], line_items: [{ price_data: { currency: 'usd', product_data: { name: 'Santa Elena Monument Donation' }, unit_amount: amount }, quantity: 1 }], success_url: 'https://thenewcanyonproject.online/thank-you', cancel_url: 'https://thenewcanyonproject.online/donate' }); res.json({ url: session.url }); }); app.listen(3000); Example PHP endpoint (server-side only): ---------------------------------------- 'payment', 'payment_method_types' => ['card'], 'line_items' => [[ 'price_data' => [ 'currency' => 'usd', 'product_data' => ['name' => 'Santa Elena Monument Donation'], 'unit_amount' => $amount ], 'quantity' => 1 ]], 'success_url' => 'https://thenewcanyonproject.online/thank-you', 'cancel_url' => 'https://thenewcanyonproject.online/donate' ]); echo json_encode(['url' => $session->url]); ?> Security notes: --------------- • Keep STRIPE_SECRET in environment variables (.env) or hosting dashboard. • Never embed the secret in HTML, JS, or client-visible files. • When ready, replace test key with your live key in the server environment. • Consider adding a webhook receiver at /webhook to record successful donations.