> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/set-up-and-launch/test-your-setup.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Test your setup

Test Purple Dot on your store before launch: place a test pre-order in a sandbox store, export it, and check the order in your platform.

Test Purple Dot end to end before you launch: place pre-orders, apply discounts, cancel as a shopper, then release a pre-order, and check the order in your e-commerce platform. How you test depends on your platform and on your [checkout method](https://docs.getpurpledot.com/understanding-purple-dot/choosing-a-checkout-method.md).

## Before you start

* Create a sandbox store. Each store in Purple Dot is either live or sandbox. A sandbox store doesn't process real payments and can be used for development or testing. Whether a store is a sandbox is set when it's created and can't be changed later, and sandbox stores show a badge in the Merchant Portal and in the checkout. We recommend connecting a sandbox store to your staging environment. When you're ready to go live, create a live store, connect it to your production store, and switch the sandbox API key for a production one.
* Connect a bank account to the sandbox store, using Stripe's [test details](https://stripe.com/docs/connect/testing). You can't export pre-orders from a sandbox store without one, and no real money moves. See [Connect a bank account for payouts](https://docs.getpurpledot.com/set-up-and-launch/money-and-policies/connect-a-bank-account-for-payouts.md).
* Take a test product out of stock in your platform. By default, Purple Dot offers a pre-order only when a variant is out of stock. See [How a product goes on pre-order](https://docs.getpurpledot.com/understanding-purple-dot/understanding-waitlists.md#how-a-product-goes-on-pre-order).
* Set up a live waitlist on that product. See [Create a waitlist](https://docs.getpurpledot.com/managing-pre-orders/waitlists/create-a-waitlist.md).
* The **Admin** role in the Merchant Portal, so you can create waitlists and export pre-orders. See [Roles and permissions](https://docs.getpurpledot.com/managing-pre-orders/administering-purple-dot/roles-and-permissions.md).

To pay in a sandbox store, use Stripe's [test card numbers](https://stripe.com/docs/testing#cards), such as `4242 4242 4242 4242` (US) or `4000 0082 6000 0000` (UK), with any expiry date, CVC, and ZIP or postcode. When you export a pre-order from a sandbox store, Purple Dot creates an order in your connected store as normal.

## Steps

Follow the test plan for your platform.

{% tabs %}
{% tab title="Shopify" %}
**With the Purple Dot checkout:**

1. **Desktop product page.** Verify that the **Add to cart** button has been replaced with **Pre-order**. Check that the estimated ship date and Purple Dot's informational content show. Test the pre-order checkout, starting from the cart.
2. **Discount codes.** Confirm that discount codes apply correctly during the pre-order checkout. Try valid and invalid codes, and check the discounted amount for pre-ordered items.
3. **Multiple products.** Add several pre-order products to the cart, and combine a pre-order product with an in-stock product in the same cart. Check that pricing, taxes, and shipping are correct.
4. **Mobile product page.** Check that pre-order product details display correctly on a mobile device, and that the pre-order checkout works on mobile.
5. **Shopper cancellation.** Cancel a pre-order from the [shopper self-service page](https://docs.getpurpledot.com/managing-pre-orders/shopper-communication/the-shopper-self-service-page.md), and check that the Merchant Portal shows it as canceled.
6. **Export and fulfill.** In the Merchant Portal, go to **Pre-orders** and select your test pre-order. Pre-orders are listed with a confirmation number beginning with `#PD`. Its status is **Open**, and Purple Dot holds it until you export it, so the order isn't in Shopify yet. Select **Export pre-order to Shopify**, select every line item, then select **Export pre-order to Shopify** in the window to confirm. Export is what a release is called with the Purple Dot checkout, and it can't be undone. The status changes to **Exported**, and a new order with the `pre-order` tag appears in Shopify. Fulfill the order in Shopify as you would any other. The pre-order stays **Exported** in the Merchant Portal: **Fulfilled** appears only for stores on native checkout.
7. **Export on restock.** Add stock to the product in Shopify and check that the pre-order is exported. Then refund the order in Shopify to simulate a return.
   {% endtab %}

{% tab title="Salesforce Commerce Cloud" %}
Follow the checks in [Install the cartridge](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/install-the-cartridge.md#verify).
{% endtab %}

{% tab title="Other platforms" %}
Your setup is likely built on the [browser SDK](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/use-the-browser-sdk.md) or the [Private API](https://docs.getpurpledot.com/purple-dot-apis/private-api.md). [Contact Purple Dot support](https://docs.getpurpledot.com/troubleshooting/get-more-help.md) for a test plan built for your integration, and see the [Setup checklist](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/setup-checklist.md).
{% endtab %}
{% endtabs %}

Check the **Pre-order confirmation** email after checkout, **Ready to ship** after you export, and **Cancellation** after you cancel. See [Emails shoppers receive](https://docs.getpurpledot.com/managing-pre-orders/shopper-communication/emails-shoppers-receive.md). When you finish, cancel your test pre-orders and cancel the matching test orders in your e-commerce platform. To remove a sandbox store, contact Purple Dot support.

## Verify

Exported test pre-orders appear as orders in your e-commerce platform, and canceled ones show as canceled in the Merchant Portal. On Shopify with the Purple Dot checkout, the exported order carries the `pre-order` tag. See [Pre-order and fulfillment statuses](https://docs.getpurpledot.com/managing-pre-orders/pre-orders-and-orders/pre-order-statuses.md).

## Troubleshooting

* [The pre-order button is not showing](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/pre-order-button-is-not-showing.md)
* [The checkout is redirecting to the homepage](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/checkout-is-redirecting-to-the-homepage.md)
* [My exports are failing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/exports-are-failing.md)

## Related

* **Concept:** [Choosing a checkout method](https://docs.getpurpledot.com/understanding-purple-dot/choosing-a-checkout-method.md), [Releasing and fulfilling pre-orders](https://docs.getpurpledot.com/understanding-purple-dot/releasing-and-fulfilling-pre-orders.md)
* **Do this:** [Create a waitlist](https://docs.getpurpledot.com/managing-pre-orders/waitlists/create-a-waitlist.md), [Launch checklist](https://docs.getpurpledot.com/set-up-and-launch/launch-checklist.md), [Connect your e-commerce platform](https://docs.getpurpledot.com/set-up-and-launch/connect-your-e-commerce-platform.md)
* **Fix it:** [The pre-order button is not showing](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/pre-order-button-is-not-showing.md), [The checkout is redirecting to the homepage](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/checkout-is-redirecting-to-the-homepage.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/set-up-and-launch/test-your-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
