AstroPay
Quick Start
- Sign up at astropay.com and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
AstroPay payment integration
| Provider ID | astropay |
| Category | Local Payment Methods |
| Website | astropay.com |
Authentication
- Method: HMAC Signature
Configuration
Required Parameters
| Parameter | Description |
|---|---|
api_key | API Key |
api_secret | API Secret |
merchant_id | Merchant ID |
secret_key | Secret Key |
Example Configuration
{
"provider": "astropay",
"provider_params": {
"api_key": "your_api_key_here",
"api_secret": "your_api_secret_here",
"merchant_id": "your_merchant_id_here",
"secret_key": "your_secret_key_here"
}
}
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
CREATED | action_required | |
APPROVED | charged | |
COMPLETED | charged | |
PENDING | charging | |
PROCESSING | charging | |
REFUNDED | refunded | |
REJECTED | rejected | |
CANCELLED | rejected | |
EXPIRED | rejected |
API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | api/v2/deposit | |
| GET | api/v2/deposit/#{deposit_id}/status | |
| POST | api/v2/deposit/#{deposit_id}/cashout |