DUITKU DOCUMENTATION

com/webapi/api/merchant/inquiry Request : POST Type : application/json Parameter merchantCode paymentAmount merchantOrderId productDetail additionalParam paymentMethod merchantUserInfo returnUrl callbackUrl signature Description Merchant Code from Duitku Payment Amount Order Id from Merchant Product Detail (optional) Payment Method (optional) Merchant user Id / email Url for redirect when transaction is finish or canceled Url for transaction Callback Signature Request Example : { } "merchantCode": "sample string 1".com/re turn http://www. "callbackUrl": "sample string 8". "paymentAmount": 2. "productDetails": "sample string 5". "signature": "sample string 10" Example D0010 150000 abcde12345 Payment for A Shop BK http://www. "additionalParam": "sample string 6".com/webapi/api/merchant/inquiry URL Production : https://passport. "merchantOrderId": "sample string 4".com/ca llback md5(merchantCode + orderId + amount + merchantKey) . "returnUrl": "sample string 9".duitku. "paymentMethod": "sample string 3".duitku.Request Transaction Function: Transaction Request Purpose: Request to perform purchase transaction URL Development : http://sandbox.example.example. "merchantUserInfo": "sample string 7".

"reference": "sample string 2". user will need to be redirected to that url to process the payment. Response : Parameter merchantCode reference paymentUrl Description Merchant Code Reference from duitku Payment Url from duitku (Redirect User) Example : { } "merchantCode": "sample string 1". "paymentUrl": "sample string 3" Example D0010 abcde12345 . the api will response with a paymentUrl data.After posting of data.

CALLBACK Return values are returned as HTTP POST. . Method : POST Parameter merchantCode amount merchantOrderId productDetail additionalParam paymentMethod signature resultCode merchantUserId reference Description Merchant Code from Duitku Payment Amount Order Id from Merchant Product Detail (optional) Payment Method Signature Payment Status User Id from Merchant Site Reference from duitku Example D0010 150000 abcde12345 Payment for A Shop BK md5(merchantCode + amount + merchantOrderId + merchantKey) 00 – Success Note : Please response with “SUCCESS” if transaction is success. Merchant will need to provide a call-back page to catch the result.

com/redirect. 01 .merchantweb.Redirect Method : Http GET Parameter merchantOrderId reference resultCode Description Order id from merchant Reference from duitku Result Code Example http://www.php? merchantOrderId=xxx&resultCode=yyy&reference=zzz Example 00 – Success.failed .

"reference": "sample string 2". Example Amount duitku 00 – Success. This function will be optional to Merchant. URL Development : http://sandbox.duitku. "signature": "sample string 3" } Response : Parameter reference merchantOrderId amount statusCode statusMessage Description Reference from duitku Order ID from merchant Amount statusCode statusMessage Example Response : { "merchantOrderId": "sample string 1".com/webapi/api/merchant/transactionStatus URL Production : https://passport.Check Transaction Function : Check Transaction Purpose : For Merchant to request for resending of transaction data in post back form. "merchantOrderId": "sample string 2".failed . 01 . This function may be used in any stage after performing the Transaction Request method.com/webapi/api/merchant/transactionStatus Request : POST Type : application/json Parameter merchantCode merchantOrderId Signature Description Merchant Code duitku Order ID from merchant Signature Example Md5( merchantCode + merchantOrderId + MerchantKey) Request Example : { "merchantCode": "sample string 1".duitku.

} "amount": "sample string 3". "statusMessage": "sample string 5" . "statusCode": "sample string 4".