Introduction
This online document is for the MonetaPay, which is an Indonesian local payment solution provider, aims to explain the relevant transaction interface of MonetaPay's current mainstream products.
Sign up for the merchant account
Please contact the BD or [email protected], MonetaPay will create a sandbox test account and a formal account for the merchant after reviewing and completing the information provided by the merchant according to local Indonesian laws and regulations.
Request domain
Request Method
Based on HTTP protocol, merchant use POST method send request to the MonetaPay API interface.
Request head
Content-Type: application/json;charset=Utf-8
Encode
The request and response information are all encoded by UTF-8
Response
code
string
status(0:success)
message
string
description of status
data
json
full data
Signature and encryption
Step1, generate signature
sign=md5(md5(token +*
|*
+ json_encode(data) + @!@ + timestamp))
Step2, AES encryption
Encryption method:
AES-128-CBC
aesKey: provided by the MonetaPay team
iv:
1EjXCBwGIMGcwCOc
Encrypt all data in
json
format according to the openssl protocol. Using the method encryption method, the encrypted ciphertext is generated throughkey
andiv
, and the encrypted ciphertext andpartner_key
are sent to the server together.
Example of Request content before encrypted
{ "partner_key":"1234567890", "en_data":{ "appid":100001002, "amount":10000, "mch_id":100000, "mch_order_no":"843969249919311", "sign":"ed2a3fa69fa2d6e83e4f052614c93ca9", "timestamp":1519984342 } }
Final request content after encrypted
{ "data": { "partner_key": "1234567890", "en_data": "eUtOJPHoE1/p3SpiQOADbS9LGRXdI8hJGb1ACrx8r9wS2wQftysZsC4H4rNr79Pj5k9fEUFy6X8m+a4L03o/3EiUEQCw6UqsM8ajC53E8quYmCzkD481HdNIrnCqcVrg7I9EWa4XLcTvFa9X3EpjvpCvrGP6n11pl4rIZm1dH28=" } }
Last updated