# Stripe Webhook

These are the guidelines on how to add the HelpYouSponsor webhook to your Stripe account. First, log in to your Stripe account and navigate to the Webhook page.

> **Note**: T*he stripe Webhook is only needed for the accounts using the legacy stripe API keys. This is not needed if you configured stripe connect*

{% embed url="<https://dashboard.stripe.com/test/workbench/webhooks>" %}
webhook
{% endembed %}

<figure><img src="https://3594793218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKO2daI6MQ1KQOLltE3m%2Fuploads%2FqWErjMQbBLG6dTgYQZS5%2Fimage.png?alt=media&#x26;token=50610212-d0bc-4e0f-864c-e15d4d9ba9d7" alt=""><figcaption><p>webhook</p></figcaption></figure>

<figure><img src="https://3594793218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKO2daI6MQ1KQOLltE3m%2Fuploads%2FH4mFlSN00jxo2u6lHbdk%2Fimage.png?alt=media&#x26;token=c510417b-3353-4aff-a76e-c7ce150dc6aa" alt=""><figcaption><p>events</p></figcaption></figure>

<figure><img src="https://3594793218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKO2daI6MQ1KQOLltE3m%2Fuploads%2Fc1lc0cGqmgIXKshOtjK3%2FOpera%20Snapshot_2025-01-13_143946_dashboard.stripe.com.png?alt=media&#x26;token=c6c30ad7-81a3-4c6c-8d7f-4805ca44f567" alt=""><figcaption></figcaption></figure>

Click the “**Add destination**” button to add a new endpoint. Select “**Events**” from your account options. In the “**Events**” section, choose “**charge succeeded.**”

Next, select the “Webhook endpoint” option. Later, add the endpoint you received from HYS.

### Adding your WebSocket secret to HYS

For security reasons we need to make sure that the request going to our HYS endpoint is truly from your Stripe account, we would require that you add the WebSocket secret that you got from stripe into HYS.

<figure><img src="https://3594793218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKO2daI6MQ1KQOLltE3m%2Fuploads%2FVZgxsJlSSJ3Dk2dF6myA%2Fimage.png?alt=media&#x26;token=f38743c6-f110-494c-bfd3-68d24eb108cd" alt=""><figcaption><p>get secret signing</p></figcaption></figure>

Once you copy the secret key, add it onto your Stripe payment settings in HYS

<figure><img src="https://3594793218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKO2daI6MQ1KQOLltE3m%2Fuploads%2FIgZkN5RS2Ilbk1BG3mBo%2Fimage.png?alt=media&#x26;token=098373af-fbc6-471b-8433-91d035eb3d36" alt=""><figcaption><p>signing secret</p></figcaption></figure>

With these actions HYS will be able to monitor transactions in your Stripe account and be able to update the donations table.


---

# 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.helpyousponsor.com/guides/getting-started/quick-start-guide/payment-gateways/stripe-setup/stripe-webhook.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.
