Integrate ArusPay into your applications
Get your API key from the Settings page after logging in.
Use Live API Key (Production) for this environmentInclude your API key in the header:
Authorization: Bearer YOUR_API_KEYBase URL:
https://aruspay.my.id/api/v1/payments/createRequest Body:
{
"order_id": "ORDER-12345",
"amount": 50.00,
"description": "Product purchase",
"callback_url": "https://yoursite.com/callback",
"redirect_url": "https://yoursite.com/success"
}cURL Example:
curl -X POST "https://aruspay.my.id/api/v1/payments/create" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_id": "ORDER-12345",
"amount": 50.00,
"description": "Product purchase"
}'Response:
{
"success": true,
"data": {
"payment": {
"reference": "PAY-A1B2C3D4E5F6",
"amount": 50.00,
"status": "pending"
},
"payment_url": "https://aruspay.my.id/pay/PAY-...",
"qr_code_url": "data:image/png;base64,..."
}
}/payments/statusQuery Parameters:
reference - Payment reference (required)cURL Example:
curl -X GET "https://aruspay.my.id/api/v1/payments/status?reference=PAY-xxx" \ -H "Authorization: Bearer YOUR_API_KEY"
| Code | Status |
|---|---|
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
422 | Unprocessable |
429 | Rate Limited |
500 | Server Error |
Configure your webhook URL in Settings. We'll send POST requests when events occur.
Available Events:
transaction.completed
transaction.failed
transfer.received
withdrawal.approved
withdrawal.rejected
Webhook Payload:
{
"event": "transaction.completed",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"transaction_id": "txn_abc123",
"type": "top_up",
"amount": 100.00,
"status": "completed"
}
}npm install @aruspay/sdkComing Soon
pip install aruspayComing Soon
composer require aruspay/sdkComing Soon
Create an account to get your API keys