What must stay in the sandbox?
Keep the application, gateway credentials, payment data, and synthetic customer records in a test environment. Do not let a test email address disguise a live transaction. Stripe’s testing documentation describes sandboxes that simulate transactions without moving funds. It instructs integrations to use test API keys and documented test values rather than real card details. Follow the gateway’s test instructions before running the email scenario.How do I test signup and payment-confirmation emails?
Treat signup verification, payment state, and mail delivery as separate assertions. A browser success screen or received email alone does not establish that the payment state is correct.- Create a synthetic account using a fresh receiving address.
- Trigger your application’s signup verification and validate the recipient, code or link, and verified state.
- Complete a simulated payment using the gateway’s documented test path.
- Confirm the application records the expected payment result using its integration contract.
- Trigger and inspect your application’s payment-confirmation email, matching the synthetic order, recipient, and attempt.
- Check the expected amount, currency, status, and links using non-sensitive synthetic values.
- Remove test accounts and data through supported cleanup operations.
Why might a test gateway receipt not arrive?
A gateway’s own receipt behavior can differ from your application’s mail behavior. Do not assume every successful sandbox payment automatically sends a customer email. Stripe’s test-receipt guidance instructs you to send a manual receipt for a test payment. If testing that receipt specifically, use its documented manual route and record that action. Keep this test separate from your app’s own confirmation email. Confirm current instructions before execution. For a missing application email, first check that the expected test recipient was accepted and that the mail was queued. For a missing gateway receipt, first check whether the documented sending action occurred. Neither case establishes a receiving-provider outage on its own.What failure paths should the scenario cover?
Cover failed or cancelled payment, duplicate notification handling, delayed processing, and a verified signup that never completes payment. Define which cases should produce mail before asserting its presence or absence. Avoid resending success messages simply because a browser page is refreshed. Use your application’s payment-state contract to test duplicate handling, and keep retry attempts distinguishable. Use controlled fixtures or capture mail for deterministic negative assertions, with a small sandbox receiving suite for integration evidence. TempInbox is receive-only, with no supported public API, inbox passwords, custom domains, or cross-device recovery. Access is held by the browser profile, and message retention is unspecified. It cannot serve as the durable contact address for real payment operations or the source of financial audit evidence.Related guides
Temp Email for Signup Testing: Three Inbox Lanes, Email for Testing: Verification with TempInbox, Temp Mail for QA Testing: Limits and WorkflowsFrequently asked questions
What temporary email should I use for payment gateway signup testing?
For manual synthetic customer tests in a sandbox, a receiving inbox such as TempInbox can inspect application signup and confirmation mail. For unattended tests, use a supported mail API. No universal best is established.Can I register a real merchant account with TempInbox?
Use a durable company-controlled mailbox for real merchant login, identity or banking verification, administrative recovery, and financial notices. This guide covers synthetic customer flows in a sandbox only.Does Stripe automatically email a receipt for every test payment?
Do not assume that. Stripe test-receipt documentation directs you to send a manual receipt for a test payment. Separate that gateway receipt check from your application’s own confirmation email.Related guides
- Temp Email for Signup Testing: Three Inbox Lanes
- Email for Testing: Verification with TempInbox
- Temp Mail for QA Testing: Limits and Workflows
- TempInbox receiving inbox