Midtrans
Quick Start
- Sign up at midtrans.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
Midtrans payment integration
| Provider ID | midtrans |
| Category | Local Payment Methods |
| Website | midtrans.com |
Authentication
- Method: Basic Auth (Base64)
- Base URL:
https://api.sandbox.midtrans.com/
Configuration
Required Parameters
| Parameter | Description |
|---|---|
server_key | Server Key |
client_key | Client Key |
Example Configuration
{
"provider": "midtrans",
"provider_params": {
"server_key": "your_server_key_here",
"client_key": "your_client_key_here"
}
}
API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | v2/charge | |
| POST | v2/#{order_id}/capture | |
| POST | v2/#{order_id}/cancel | |
| POST | v2/#{order_id}/refund | |
| GET | v2/#{order_id}/status |