Skip to main content

Midtrans

Quick Start
  1. Sign up at midtrans.com and obtain API credentials
  2. Create a terminal in the Admin Console with the parameters below
  3. Start processing — the adapter is pre-built and ready to use

Go to Midtrans →

Overview

Midtrans payment integration

Provider IDmidtrans
CategoryLocal Payment Methods
Websitemidtrans.com

Authentication

  • Method: Basic Auth (Base64)
  • Base URL: https://api.sandbox.midtrans.com/

Configuration

Required Parameters

ParameterDescription
server_keyServer Key
client_keyClient Key

Example Configuration

{
"provider": "midtrans",
"provider_params": {
"server_key": "your_server_key_here",
"client_key": "your_client_key_here"
}
}

API Reference

MethodEndpointDescription
POSTv2/charge
POSTv2/#{order_id}/capture
POSTv2/#{order_id}/cancel
POSTv2/#{order_id}/refund
GETv2/#{order_id}/status

Resources