Skip to content

Instantly share code, notes, and snippets.

@rizdaprasetya
Created July 21, 2021 09:48
Show Gist options
  • Save rizdaprasetya/bc5c8c8d150955f7241612599a63f8d7 to your computer and use it in GitHub Desktop.
Save rizdaprasetya/bc5c8c8d150955f7241612599a63f8d7 to your computer and use it in GitHub Desktop.
Integrate POS Device with GoPay an QRIS - request
curl https://api.midtrans.com/v2/charge \
--request POST \
--user 'YOUR_SERVER_KEY:' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Override-Notification: YOUR_BACKEND_URL_TO_RECEIVE_NOTIFICATION' \
--data '{
"payment_type": "qris",
"transaction_details": {
"order_id": "order102",
"gross_amount": 789000
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment