# 12. Contract details

The details 777 Pay's documentation leaves open, as Royal Pay defines them.

| Topic | Royal Pay |
|---|---|
| **Test environment** | No separate sandbox. Royal Pay gives you a test merchant with its own keys. Its pay-ins use real UPI payments, so test with ₹1 amounts. |
| **Amount units** | Rupees (INR) as a JSON number, at most 2 decimals. Pay-in: more than 0. Payout: at least 1000. Your account may also have per-deposit minimums and maximums: Royal Pay tells you yours. |
| **Requested vs returned amount** | Always identical. `data.amount` echoes what you sent. |
| **Create failure response** | `{ "success": false, "message": "…" }` with a 4xx or 5xx status. Payouts: `{ "status": false, "message": "…" }`. See [Errors](https://docs.royalpe.site/errors). |
| **Idempotency** | On `orderId`, per merchant, for pay-ins and payouts. Same `orderId` and same details return the original; different details answer `409` with `Order ID already used with different details`. |
| **Duplicate order IDs** | As above: never two transactions for one `orderId`. |
| **Rate limits** | None enforced today. Create transactions as needed; poll status at most every 10 seconds per transaction. |
| **API retries** | Retry `5xx` and network errors with backoff. Creates are safe to retry with the same `orderId`. Don't retry `4xx`. |
| **Webhook signing** | `X-Signature` = hex HMAC-SHA256 with your webhook signing key over `X-Event-Id + "." + X-Timestamp + "." + raw body`. Refuse timestamps more than 5 minutes old. |
| **Webhook acknowledgement** | Any 2xx within 8 seconds. Redirects aren't followed. |
| **Webhook retries** | After 10 s, 30 s, 1 min, 5 min, 15 min, 30 min, 1 h, 3 h and 6 h: 10 attempts, about 12 hours, same `X-Event-Id`. |
| **Time formats** | `updatedAt` and payout `timestamp`: ISO 8601 UTC with milliseconds (`2026-11-30T10:30:00.000Z`). `X-Timestamp`: Unix seconds. |
| **Redirect after checkout** | The checkout's **Return to …** link opens your `redirectUrl` exactly as you sent it. No parameters are added: look up the result by webhook or status. |
| **Payout status names** | The create and status endpoints say `processing`; the webhook says `progress` for the same state. Final: `completed` (unless later `reversed`), `failed`, `cancelled`, `rejected`, `reversed`. All arrive by webhook. |
| **Pay-in statuses** | `progress`, `pending`, `approved`, `rejected`, plus `cancelled` (ended before proof was submitted). All arrive by webhook, `progress` first. |
| **Currency and precision** | INR only, paise precision (2 decimals). |
| **UPI intent mode** | Switched on per merchant by Royal Pay. On: pay-ins paid to a UPI ID return `isUpiIntent: true` and `upiIntentUrl`. Off, or a bank-transfer pay-in: `false`, without `upiIntentUrl`. |

---

Source: https://docs.royalpe.site/notes/contract-details · All docs: https://docs.royalpe.site/llms-full.txt · Updated 2026-11-30
