> ## Documentation Index
> Fetch the complete documentation index at: https://davinci.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Awdpay

> Set up Awdpay payments for prepaid and lifetime plans in Davinci AI.

> [!WARNING]
>
> Awdpay requires the [SaaS Business](https://davinci.mintlify.site/saas/saas-business.md) extension (Extended License) and the **Awdpay Payment Gateway** extension from the **Marketplace**. The Awdpay card appears in Finance Settings only after the Awdpay Payment Gateway extension is installed.

> [!NOTE]
>
> **Supported plans:** prepaid and lifetime plans (one-time payment). Awdpay has no recurring billing, so Davinci never offers it for monthly or yearly plans.

## Get your API credentials

In your Awdpay merchant account, go to **Merchants** → **API Payment** and generate your **API key**. Also copy your **webhook API key**, the secret Awdpay uses to sign its callbacks.

## Webhook

Nothing to set up in Awdpay. Davinci sends `https://YOUR_DOMAIN/webhooks/awdpay` as the callback URL of each payment, so your site must be publicly reachable over HTTPS. Davinci rejects callbacks without a valid `X-AWDPAY-Signature` (checked with the **Awdpay Webhook API Key**), then asks Awdpay for the transaction status. It completes the order once, when Awdpay reports it paid, on the callback or when the customer returns, whichever comes first.

## Configure Awdpay in Davinci

**1. Step 1**

Go to **Admin Panel** → **Finance Management** → **Finance Settings** and click **Awdpay**.

**2. Step 2**

Fill in the fields:

| Field | Value |
| - | - |
| **Awdpay API Key** | API key |
| **Awdpay Webhook API Key** | Webhook API key (without it, every callback is rejected and orders complete only when the customer returns) |
| **Awdpay Base URL** | `https://gateway.awdpay.com/v3/` (filled in automatically, read-only) |
| **Awdpay Webhook URL** | `https://YOUR_DOMAIN/webhooks/awdpay` (filled in automatically, read-only) |
| **Awdpay Environment** | **Sandbox** for test payments, **Production** for real payments. A test payment never completes an order in **Production**. |

**3. Step 3**

Turn on **Use Awdpay Prepaid** (prepaid and lifetime plans) and click **Save**.

> [!NOTE]
>
> Davinci charges in the plan's currency and sends the customer's name, account email, billing address and country to Awdpay. Price the plans you sell through Awdpay in a currency Awdpay supports (for example XOF).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.