# Testing

To verify that your payment flow is working correctly:

* For the creation of payment links: Ensure that a payment link is created on PaySG's dashboard with the correct form details.&#x20;
* For the sending of payment/Postman emails: Ensure that an email is successfully received after form submission.

Once verified, you may create a live payment service at [pay.gov.sg](https://pay.gov.sg). You may choose to create a new pipe, or add a new connection for the live payment service instead of the staging payment service.

## Troubleshooting

#### Plumber

* Once you've verified that all the steps were followed accordingly, check if your pipe has been published. If your pipe's status is "Draft", your pipe has not been published yet. Access the selected pipe and click "Publish" in the top right corner.

<figure><img src="/files/kx0ooDMsF0EB5ODkns4j" alt=""><figcaption></figcaption></figure>

* For payment flows with unexpected results, check the "Executions" tab on Plumber for executions with a "Failure" status.

<figure><img src="/files/GSWaU3S32p3LA68LOKP4" alt=""><figcaption></figcaption></figure>

#### PaySG

<figure><img src="/files/tP4RUleGzYHl4VNf13YE" alt=""><figcaption><p>PaySG error</p></figcaption></figure>

Ensure that all [compulsory fields](/start-using-the-dashboard/one-time-payment-links/single-link-creation.md) are filled in. You may do so using a form response or by inputting a fixed value on Plumber.

#### Calculator

<figure><img src="/files/JL6XVwnvpaZbjajUiFgJ" alt=""><figcaption><p>Missing value in "firstNumber"</p></figcaption></figure>

<figure><img src="/files/iWJToO7N1BL9utOqzBqc" alt=""><figcaption><p>Calculator error message</p></figcaption></figure>

Ensure that all fields are filled in.&#x20;

For forms with **optional** payment amount fields, having an empty result will cause the pipe to fail. To prevent this, add a "0" in front of the selected result.

<figure><img src="/files/YKL7043fqcTd1n4FFJDx" alt=""><figcaption></figcaption></figure>


---

# 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://guide.pay.gov.sg/start-using-the-dashboard/payment-workflows-with-plumber/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.
