# Sending a payment failure notification

When processing transactions, it's crucial to promptly notify customers about any issues that may arise, such as payment failures, to ensure transparency and maintain customer trust. The payment failure notification in our system is an automated response designed to alert the customer whenever a transaction does not go through successfully.&#x20;

## Notification trigger

This notification is primarily triggered by the `submitOrder` method within the `SubscriptionOrderHelper.java` class, ensuring that customers are quickly informed and can take necessary action to rectify the issue.


---

# 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.digitalriver.com/commerce-api/admin-apis/subscription-management/subscription-notifications/sending-a-payment-failure-notification.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.
