# Whop

> Connect Whop to your Cademí: the product ID in the delivery and the Postback URL to set up in your Whop account.

Connect Whop to your Cademí so each approved purchase gives the student access on its own. You need the product ID and a postback pointing to Cademí. Whop 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 **Whop**.
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 Whop.
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 your Whop account, copy the ID of the product you deliver through Cademí.
2. Paste the value into **Product ID** in the Cademí delivery.

## 3. Set up the postback

The postback address is set up in your Whop account: paste the **Postback URL** of the delivery there and select the events Cademí reads: `payment.created`, `payment.succeeded`, `payment.failed`, `payment.refunded`, `refund.created`, `refund.updated`, `dispute.created`, `dispute.updated`, `membership.activated`, `membership.deactivated` and `membership.cancel_at_period_end_changed`. Save and, in Cademí, save the delivery.
