> ## Documentation Index
> Fetch the complete documentation index at: https://docs.foundable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Test a purchase

> Buy from your website’s preview with Stripe’s test card to check your checkout works. No money moves, and you can start before Stripe approves you.

Before customers buy for real, buy from your own website in [Build’s preview](/build/preview-and-edit). You go through the same checkout a customer would, but you pay with Stripe’s test card, so no money moves.

You can test before Payments is set up and before your website is published. Ted’s products start as test products until both are done.

<Frame>
  <img src="https://mintcdn.com/foundable/rLiVejhECh6lU1it/images/payments/payments-test-purchase.jpg?fit=max&auto=format&n=rLiVejhECh6lU1it&q=85&s=543cd303a9fae68ba027a47be537ea9e" alt="Payments in test mode after a test purchase, with the message Test purchase went through, No money moved." width="1444" height="1002" data-path="images/payments/payments-test-purchase.jpg" />
</Frame>

## Make a test purchase

<Steps>
  <Step title="Get something to sell">
    Ask Ted for a product and press **Create product** on his card. Until Payments is ready and your website is published, it’s a test product. See [Sell on your website](/payments/sell-on-your-website). Products you already sell can be tested too.
  </Step>

  <Step title="Add its Buy button">
    Press **Add to my site** on Ted’s card and send the request. Ted adds the Buy button to your website. You don’t need to publish to test it.
  </Step>

  <Step title="Press Buy in the preview">
    In **Build**, open your website and press its Buy button. Stripe’s test checkout opens, either right in the preview or in a new tab.

    <Frame>
      <img src="https://mintcdn.com/foundable/B91kdYmAdJziZrM_/images/payments/payments-test-checkout.jpg?fit=max&auto=format&n=B91kdYmAdJziZrM_&q=85&s=5da98f2f442f5c47737e15a246e27228" alt="Build’s preview showing Test checkout: the line about Stripe’s test card, Copy card number, Other test cards, Back to site, and Stripe’s test form." width="1600" height="889" data-path="images/payments/payments-test-checkout.jpg" />
    </Frame>
  </Step>

  <Step title="Pay with the test card">
    Use card number 4242 4242 4242 4242, any future date and any CVC. If the checkout opens in the preview, **Copy card number** copies the number. **Back to site** takes you back to your website.
  </Step>

  <Step title="See it in Payments">
    Payments opens on **Test** and says “Test purchase went through” and “No money moved.” Your test purchase is first in the list.
  </Step>
</Steps>

<Warning>
  Test only in Build’s preview. On your live website, the Buy button takes real payments with real cards.
</Warning>

## What you’ll see

| What you see | What it means | What to do |
| - | - | - |
| “Test purchase went through” and “No money moved.” | The test payment worked. | Look it over in the **Test** view. |
| “Test checkout canceled” | You left Stripe’s page without paying. | Press the Buy button again when you’re ready. |
| “We’re confirming your payment.” and “It can take a moment.” | Stripe hasn’t confirmed the payment yet. | Wait a moment. |
| “Your payment didn’t go through.” | The test payment didn’t work. | Try again with the test card. |
| “Your test checkout is ready” with **Open test checkout** | Your browser stopped the new tab from opening. | Press **Open test checkout**. |
| “The test checkout didn’t load.” | Stripe’s form couldn’t open in the preview. | Press **Try again**. |
| “Too many tries. Please wait a moment and try again.” | You started a lot of test checkouts in a short time. | Wait a little, then try again. |
| “This item isn’t for sale right now.” | Nothing is for sale on that button. The product may be switched off. | Check the product in Payments. |

## The Test view

Payments has a **Test** and **Live** switch. It sits at the end of the **Dashboard** row, or in a row of its own before Stripe approves your account. **Live** is your real sales. **Test** shows only your test purchases:

* The account row says “In test mode you can test your checkout and make as many transactions as you like.”
* Revenue and charts count your paid test purchases.
* Each test purchase is listed without a buyer email.
* **Products** lists your website’s test products, with **Add to my site** in their **…** menu.

<Frame>
  <img src="https://mintcdn.com/foundable/rLiVejhECh6lU1it/images/payments/payments-test-transactions.jpg?fit=max&auto=format&n=rLiVejhECh6lU1it&q=85&s=14929ea4278deea92854d9a70dcb3fdf" alt="The test purchases list in Payments’ test mode, with a brewing class bought today at the top." width="1600" height="368" data-path="images/payments/payments-test-transactions.jpg" />
</Frame>

The Test view has no refunds or disputes, because nothing was charged. Test purchases never show in your live sales.

## When your test products go live

A test product goes on sale for real by itself once Stripe approves your account and your website is published. You don’t need to make it again: the same Buy button then takes real payments on your live website.

## Who can test

Everyone in your foundable can look at the **Test** view. The owner, admins and members can buy in the preview. Only the owner or an admin can create a test product.

## FAQ

<AccordionGroup>
  <Accordion title="Does a test purchase cost anything?">
    No. Test purchases run on Stripe’s test system, never on your own Stripe account, so no money moves and nothing is charged.
  </Accordion>

  <Accordion title="Can I try other test cards?">
    Yes. When the test checkout opens in the preview, **Other test cards** opens Stripe’s page of test cards, with more numbers to try.
  </Accordion>

  <Accordion title="Does buying in the preview ever charge a real card?">
    No. A Buy button pressed in Build’s preview always opens a test checkout, even after your website takes real payments.
  </Accordion>
</AccordionGroup>

## Related

<CardGroup cols={2}>
  <Card title="Sell on your website" icon="https://mintcdn.com/foundable/bTUqs5K9ofH2F4tQ/icons/currency-circle-dollar.svg?fit=max&auto=format&n=bTUqs5K9ofH2F4tQ&q=85&s=fe33014ccda097050f8fe3d22260a00d" href="/payments/sell-on-your-website" width="1024" height="1024" data-path="icons/currency-circle-dollar.svg">
    Ask Ted for a product and add its Buy button.
  </Card>

  <Card title="Get paid with Payments" icon="https://mintcdn.com/foundable/bTUqs5K9ofH2F4tQ/icons/credit-card.svg?fit=max&auto=format&n=bTUqs5K9ofH2F4tQ&q=85&s=4ce6b59ccab881ef31c7c47de93e760a" href="/payments/overview" width="1024" height="1024" data-path="icons/credit-card.svg">
    Set up Payments with Stripe.
  </Card>

  <Card title="Preview and change your website" icon="https://mintcdn.com/foundable/bTUqs5K9ofH2F4tQ/icons/eye.svg?fit=max&auto=format&n=bTUqs5K9ofH2F4tQ&q=85&s=c14d14fd0014468eca6ceceef957cf0e" href="/build/preview-and-edit" width="1024" height="1024" data-path="icons/eye.svg">
    Look at your website before anyone else does.
  </Card>

  <Card title="Sales and refunds" icon="https://mintcdn.com/foundable/bTUqs5K9ofH2F4tQ/icons/trend-up.svg?fit=max&auto=format&n=bTUqs5K9ofH2F4tQ&q=85&s=7afa4f93ae93a6109b61e18e69bde862" href="/payments/sales-and-refunds" width="1024" height="1024" data-path="icons/trend-up.svg">
    See your real sales once you go live.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.