Created
July 21, 2021 09:48
-
-
Save rizdaprasetya/bc5c8c8d150955f7241612599a63f8d7 to your computer and use it in GitHub Desktop.
Integrate POS Device with GoPay an QRIS - request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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