# Pagou.ai

> Connect Pagou.ai to your Cademí: the payment link code that works as the product ID and the webhook under Configurações > Webhooks.

Connect Pagou.ai to your Cademí so each approved purchase gives the student access on its own. You need the payment link code, which Cademí uses as the product ID, and a webhook pointing to Cademí. Pagou.ai does not ask for a token.

## 1. Create the delivery in Cademí

1. In the Cademí dashboard, open **Sales > Deliveries** and add a delivery.
2. In **Select a Gateway**, pick **Pagou.ai**.
3. In **Delivery Name**, enter a name that helps you recognize it later.
4. **Sales Mode** shows only **One-time sale**: a Pagou.ai delivery does not have the **Subscription** option.
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

On Pagou.ai, the product identifier is the code of the payment link.

1. In the Pagou.ai dashboard, open **Links de pagamento** (Payment links) in the main menu.
2. Click the link you sell and then **Editar** (Edit).
3. In the browser address bar, copy the part that comes after `/payment-links/`.
4. Paste the value into **Product ID** in the Cademí delivery.

## 3. Set up the webhook

1. In the Pagou.ai dashboard, open **Configurações > Webhooks** (Settings > Webhooks) and click **Criar webhook** (Create webhook).
2. In the URL field, paste the **Postback URL** of the delivery.
3. Save the webhook and, in Cademí, save the delivery.
