# Configure Dunning Emails

Stripe can be configured to send emails to your customers when a failed payment goes through. On this email there is a link for the customers to update their payment information. This link can be set to the page where you have the Billflow Subscription Management Portal, and from there they will be able to update their payment details. Follow the steps below to enable that.

## Step 1: Turn on Emails

Go to <https://dashboard.stripe.com/settings/billing/automatic> & turn on Customer Emails for failed payments.

![Turn on email on Stripe Dashboard](/files/-MIyiDYe3YTfXvDr-IIs)

## Step 2: Configure URL

Click on the eye icon and paste in the URL where you have your Subscription Portal embedded.

![Configure email link on Stripe Dashboard](/files/-MIyiVUlTQkD6NEsK8fJ)

Done! You're all set. Now when a customer has a failed payment, they'll receive an email with a link to update their payment information.


---

# 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.billflow.io/how-to/cancellations-payment-failures/configure-dunning-emails.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.
