# Stripe Webhook for callbacks

After you have provided your Pixfizz account manager with the Publishable Key and Secret Key, you'll have to set up a webhook in the Stripe admin for payment callbacks to work.

<br>

Via Stripe Admin:

1. Go to Developers -> Webhooks
2. Click "+ Add Endpoint"
3. Under "Endpoint URL" enter: "https\://\<yoursubdomain>.pixfizz.com/cart/stripe\_callback"
4. Under "Events to send" select these six events:
   * checkout.session.completed
   * checkout.session.async\_payment\_succeeded
   * checkout.session.async\_payment\_failed
   * payment\_intent.canceled
   * payment\_intent.succeeded
   * payment\_intent.payment\_failed
5. Click "Add Endpoint"
6. Locate the "Signing secret" for the new endpoint, reveal it, and copy the value to the pixfizz superadmin stripe payment gateway settings. If you don't have access to the superadmin, please send the Signing Secret to your  Pixfizz account manager.
7. Done!


---

# 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://help.pixfizz.com/admin-guide/payment-gateways/stripe-webhook-for-callbacks.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.
