# Optimal Alerts

Go to **Admin > Plugins > Chargeback Management**. Click on the **Optimal Alerts** tile. Click **+ Activate**.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FtZr8o5GKOpX9tdKwWEBI%2Fimage.png?alt=media&#x26;token=9891a4eb-298a-4018-bf81-bfc73dafa6c4" alt="" width="288"><figcaption></figcaption></figure>

Enter the **apiKey** from Optimal Alerts.

Choose to automatically **refund** and/or **blacklist** when an alert is received. The automatic refund is a full refund. The automatic blacklist will blacklist email, phone, IP address, and billing address. It will also cancel all active subscriptions for the customer.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FX9TGRwJ9uRDWYTaqveXb%2Fimage.png?alt=media&#x26;token=bc8c39c2-425d-4b9d-a68b-bc5ff78301fb" alt="" width="375"><figcaption></figcaption></figure>

Edit the plugin. Copy the **Event URL**. Enter that value at Optimal Alerts for the prevention.match event.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2F7TENwFjux9UrSAImdZWr%2Fimage.png?alt=media&#x26;token=c789c95b-94ea-4c28-a7a7-2b210504c92f" alt=""><figcaption></figcaption></figure>

Alerts are received and a proper attempt is made to match the alert to a successful transaction. The evaluation is not perfect. Matching is done with card bin, card last 4 digits, arn (if provided from the gateway at the time of the transaction), date, and amount.

Refunds are automatically sent back to Optimal Alerts with the refund status.
