# Kirvano

> Connect Kirvano to your Cademí: the product ID in the address bar and the webhook under Extensões with purchase, refund and subscription events.

Connect Kirvano to your Cademí so each approved purchase gives the student access on its own. You need the product ID and a webhook pointing to Cademí. Kirvano does not ask for a token in the delivery.

## 1. Create the delivery in Cademí

1. In the Cademí dashboard, open **Sales > Deliveries** and add a delivery.
2. In **Select a Gateway**, pick **Kirvano**.
3. In **Delivery Name**, enter a name that helps you recognize it later.
4. In **Sales Mode**, choose **One-time sale** or **Subscription**, matching the product on Kirvano.
5. The **Gateway connection** section shows the **Product ID** field and the **Postback URL**.

Keep the delivery open: you come back to it in the next steps.

## 2. Find the product ID

1. In the Kirvano dashboard, click **Produtos** (Products) in the side menu and then the product name.
2. Copy the product ID shown in your browser's address bar.
3. Paste the ID into **Product ID** in the Cademí delivery.

**More than one product in the cart:** each item in the purchase, order bumps included, releases the delivery that holds its ID. Register one delivery for each product that gives access.

## 3. Set up the webhook

1. In the Kirvano dashboard, open **Extensões > Webhook** (Extensions > Webhook) and click **Criar Webhook** (Create webhook).
2. In **URL do Webhook** (Webhook URL), paste the **Postback URL** of the delivery.
3. In **Token**, paste the identification token of your Cademí: in the Cademí dashboard, open **Settings > API keys > Legacy API** (in the **Integrations** group) and copy the value of **Identification token**.
4. In **Eventos** (Events), select: Compra aprovada, Reembolso, Assinatura cancelada, Assinatura atrasada and Assinatura renovada (approved purchase, refund, canceled, late and renewed subscription).
5. Click **Salvar** (Save) and, in Cademí, save the delivery.
