Bookstore Test-Mode Verification

Preview environment only · Not linked from public navigation · noindex

Stripe Test Mode

All sessions created here use sk_test_ / pk_test_ keys. No real charges are made. Use Stripe test card 4242 4242 4242 4242, any future expiry, any 3-digit CVC.

What this test verifies

  • Session ID begins with cs_test_ (not cs_live_)
  • Publishable key begins with pk_test_ (not pk_live_)
  • Stripe Checkout renders at $14.99 for 2 AMERICAS
  • Payment completes with test card 4242 4242 4242 4242
  • Redirect to /books/success?session_id=cs_test_...
  • /api/books/confirm verifies payment and issues download token
  • Download token begins 60-minute TTL countdown
  • /api/books/download streams PDF from /private/books/
  • PDF opens with correct cover, title, and author
  • Forged/expired tokens return HTTP 403

2 AMERICAS: One Nation. Two Realities. One Humanity.

234 pages · 24 chapters · Author: David Melvin

$14.99

S.A.V.E. Foundation Social Welfare Series — Complete Digital Edition

191 pages · Complete digital edition

$29.99

After completing the test purchase:

  1. You will be redirected to /books/success?session_id=cs_test_...
  2. The success page calls /api/books/confirm to verify payment directly with Stripe
  3. A 60-minute download token is issued — click Download to receive the PDF
  4. Open the PDF and verify: cover, title page, author, chapter order, page integrity
  5. Return here and confirm all steps passed before providing publication authorization

Webhook note: The test webhook at /api/books/webhook-test must be configured in the C4 Stripe Dashboard (test mode) or via the Stripe CLI to receive checkout.session.completed events. The confirm endpoint also creates the token directly from the Stripe API, so the download will work even before the webhook fires — but webhook processing must also be verified separately.

DONATECORPORATE & MAJOR GIVING