# Stripe

Stripe Payments are also available in CactusDash. Select this payment method if it suits you and enter all the necessary information.

<div align="left"><figure><img src="/files/71VmQCwMX8Lt7IS0ZQEw" alt="" width="563"><figcaption></figcaption></figure></div>

## WH secret key

Follow the instructions below to find the WH secret key.

1. Go to <https://dashboard.stripe.com/test/webhooks/create>
2. Paste [https://api.cactusweb.io/api/v2/user/stripe/notification/{ownerName} <br>](<https://api.cactusweb.io/api/v2/user/stripe/notification/{ownerName}&#xD;&#xA;>)into the "Endpoint URL" field&#x20;

<mark style="color:red;">\*Replace {ownerName} with your company name. If there are spaces, replace them with dashes:</mark>\
\&#xNAN;*cactus web = cactus-web*

<div align="left"><figure><img src="/files/kep1mZ5sGRWTUFGvCouu" alt="" width="563"><figcaption></figcaption></figure></div>

3. Then, select the following events to send:

<pre><code><strong>charge.expired
</strong>charge.failed
charge.pending
charge.succeeded

checkout.session.completed

customer.created
customer.deleted
customer.subscription.created
customer.subscription.deleted
customer.subscription.paused
customer.subscription.pending_update_applied
customer.subscription.pending_update_expired
customer.subscription.resumed
customer.subscription.trial_will_end
customer.subscription.updated
customer.updated

payment_intent : ALL EVENTS

payment_method : ALL EVENTS
</code></pre>

<div align="left"><figure><img src="/files/wMotrv67y0QJKgrPOeMW" alt="" width="563"><figcaption></figcaption></figure></div>

3. Finally, on the webhooks page, click "Reveal" to get the WH secret key

## Some more settings

1. Activate the portal on <https://dashboard.stripe.com/test/settings/billing/portal>
2. Set the same Payment attempts as in the CactusDash settings on <https://dashboard.stripe.com/test/revenue_recovery/retries>

## Product setup

in Stripe's personal account, go to the *More* -> *Product catalogue -> Add product*

<figure><img src="/files/46mMmCxpcLUzJ3xZdxIt" alt=""><figcaption></figcaption></figure>

On the product page, you need to create 2 prices — the initial price and the monthly subscription price.\
You will need Pricing API ID in the future — in creating licenses and plans.

<figure><img src="/files/yqC1zx2SfEKQ570U2WkP" 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://cactus-1.gitbook.io/cactusdash-guide/getting-paid/stripe.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.
