# ProspectPay

### Step 1: Data preparation

1. Contact your ProspectPay representative to obtain API keys.
2. You need to obtain two keys:

* **Access key** — API access key
* **Secret key** — secret key for signing requests

3. When configuring **Webhook URL** in ProspectPay specify the link in the format:

```
https://your-domain.com/auto-withdraws/callback/prospect_pay/{order_id}
```

For example:

```
https://demo.lara-script.com/auto-withdraws/callback/prospect_pay/{order_id}
```

⚠️ **Important:**\
At the moment ProspectPay supports payouts from accounts **UAHG** and **USDT**.

### Step 2: Go to the admin panel section

1. Log in to the admin panel **Lara Script**.
2. Go to the section:

**"General" → "Auto Payments" → "ProspectPay"**

### Step 3: Fill in the fields

Fill out the form in the admin panel.

| Field          | Description                                                                   | Example          |
| -------------- | ----------------------------------------------------------------------------- | ---------------- |
| **Api key**    | API access key obtained from your ProspectPay representative                  | abc123xyz        |
| **Secret key** | Secret key for signing requests obtained from your ProspectPay representative | sk\_live\_secret |
| **Currency**   | Account currency for payouts (USDT or UAHG)                                   | USDT             |

💡 **Tip:**\
Check the keys for errors - they must be unique and contain no spaces.

### Step 4: Save and test

1. Click **"Save"** at the bottom of the form.
2. Go to the page **for creating or editing an exchange direction**.
3. In the field **"Withdrawals"** click **"Add row"** and select the value **"ProspectPay"**.
4. Configure **minimum and maximum exchange amount limits** for triggering auto payments.\
   Limits are configured for the "Give" currency **"Give"**.
5. Check the integration: create a **test request and pay for it**.

Statuses should update automatically:

* New request
* Awaiting confirmation
* Paid
* Awaiting confirmation from the auto payments module
* Completed
