# Payment Retry

* In which we are handling the subscription orders payment handling. Let suppose a subscription upcoming order payment fails and what action we need to do for that subscription. So we can handle these settings.
*

```
<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd1Ly07B9KPK51E2Hmo0eAGDzzsIItIJ6Xcw4v9HSX_GMLcm2VCwuH_OgpQkRo-X2zc60z92fBsSIRdbpfTbN1JdEUF_ND9zUZmFvdlJdUz6EBfpTOqAq98r4XVSlbyYy8UYrc5?key=PWWdpJ3Y_qEUOcs-2MfQnVdS" alt=""><figcaption></figcaption></figure>
```

* Retry schedule: Retry failed payments number of times.
* Check the ‘Configure delay settings based on the retry attempt’ if you want to set the multiple retries with different days basics.
* If you unchecked the “Configure delay settings based on the retry attempt” then set the field “Delay before retrying a failed payment” to retry the payment after those days of period.

When all the retries are done:  You can choose the action what if payment is failed after all tries, so you will be able to perform action for that subscription according to it “Paused Subscription” or “Cancel Subscription”


---

# 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://script-and-theory.gitbook.io/all-in-one-commerce-docs/subscription/settings/payment-retry.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.
