> For the complete documentation index, see [llms.txt](https://cactus-1.gitbook.io/cactusdash-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cactus-1.gitbook.io/cactusdash-guide/getting-paid/stripe.md).

# 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>\
*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>
