🚧 This project is currently in active development. A sandbox environment will be made available soon for testing and exploration. Stay tuned!
redirect_url and a webhook notification is sent to your webhook_url.| Environment | Base URL |
|---|---|
| Sandbox | https://checkout-sandbox.datmanpay.com |
| Production | https://checkout.datmanpay.com |
secret) and public key (pub_key) issued to your merchant account. The encrypted payload must be constructed using your merchant secret before being passed in the URL.| Parameter | Required | Description |
|---|---|---|
| data | Yes | AES-256-CBC encrypted payload, base64-encoded twice |
| base64Data | Yes | Base64-encoded JSON containing AVS and billing context |
| pub_key | Yes | Your merchant's public key identifier |
data URL parameter.{
"reference": "5587687732",
"customer_id": "4765876804",
"country_code": "US",
"redirect_url": "https://example.com",
"webhook_url": "https://webhook.site/21c77815-6551-4a7e-9139-8ed94be56046"
}| Field | Type | Required | Description |
|---|---|---|---|
| reference | string | Yes | Unique transaction reference. Numeric only, up to 16 digits |
| customer_id | string | Yes | Your internal customer identifier. |
| country_code | string | Yes | ISO 3166-1 alpha-2 country code (e.g., GB, US) |
| redirect_url | string | Yes | URL to redirect the customer to after card addition completes |
| webhook_url | string | Yes | URL to receive the webhook notification when card addition succeeds or fails |
base64Data URL parameter contains a base64-encoded JSON object with additional context:{
"backurl": "https://example.com",
"country_code": "US"
}| Field | Type | Required | Description |
|---|---|---|---|
| backurl | string | Yes | URL to send the customer to if they cancel or go back |
| country_code | string | Yes | ISO 3166-1 alpha-2 country code — must match the payload |
https://<BASE_URL>/add-car?data=<ENCRYPTED_DATA>&base64Data=<base64Data>&pub_key=<public_key>Example:
https://checkout-sandbox.datmanpay.com/add-card?data=U2FtcGxlRW5jcnlwdGVkRGF0YQ==&base64Data=eyJiYWNrdXJsIjoiaHR0cHM6Ly9leGFtcGxlLmNvbSIsImNvdW50cnlDb2RlIjoiR0IifQ==&pub_key=pk_bdhyudbhdbcAfter payment completion:
redirect_url| Error Code | Reason | Suggested Action |
|---|---|---|
| Invalid configuration! | Wrong merchant config | Verify that merchant config keys are correct |
| Unable to process your request at the moment. Please try again later. | Missing required key | Verify that all required keys are present |
| Invalid secret | Invalid encryption or secret mismatch | Check your secret key length and initialization vector (IV) |
| Double-check your card details and try again. | Invalid card details | Verify that all card details are correct |