# Testing

## Configure for Testing&#x20;

{% hint style="danger" %}
**Always** disable Testnet mode when testing is complete or orders can be completed by customers using non-mainnet funds.
{% endhint %}

#### WooCommerce

Navigate to the WooCommerce > Settings > Payments page and select "Astral Payments". Set the "Use Testnet" checkbox to enabled and save your changes.

![](/files/-MekdcgsWsZ9iIKjYWp5)

If using the Terra chrome extension, ensure it is set to "Testnet". The payments page will inform you if you are connected to the wrong chain for your test payment otherwise.

![](/files/-MekdzB521hYRJSGtM_X)

## Perform a Test Purchase

Add items to your cart within your eCommerce store and go to your checkout page. Select the Astral Payments method as your chosen payment gateway.

![](/files/-MekfDefpV9tkgNP5rOy)

After selecting your payment gateway and placing your test order, you'll be redirected to the Astral Payments testnet gateway that shows the details of your payment to be made for your purchase.

![](/files/-MepVsWyqjojmfqfmvCY)

Click "Pay" and you should be prompted to confirm a transaction within your Terra chrome extension for the amount required for your purchase.\
\
Wait for the payment to succeed, at which point you will be redirected to the order confirmation page for  your store.

![](/files/-MepWJni-I1G4fS4IWmh)

The order should now be completed and your stock levels adjusted within your WooCommerce store.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.astral.money/merchants/testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
