Package com.midtrans.httpclient
Class TransactionApi
- java.lang.Object
-
- com.midtrans.httpclient.TransactionApi
-
public class TransactionApi extends Object
-
-
Constructor Summary
Constructors Constructor Description TransactionApi()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.json.JSONObjectapproveTransaction(String param)static org.json.JSONObjectapproveTransaction(String param, Config configOptions)static org.json.JSONObjectcancelTransaction(String param)static org.json.JSONObjectcancelTransaction(String param, Config configOptions)static org.json.JSONObjectcaptureTransaction(Map<String,String> requestBody)static org.json.JSONObjectcaptureTransaction(Map<String,String> requestBody, Config configOptions)static org.json.JSONObjectcheckTransaction(String param)static org.json.JSONObjectcheckTransaction(String param, Config configOptions)static org.json.JSONObjectdenyTransaction(String param)static org.json.JSONObjectdenyTransaction(String param, Config configOptions)static org.json.JSONObjectdirectRefundTransaction(String param, Map<String,String> requestBody)static org.json.JSONObjectdirectRefundTransaction(String param, Map<String,String> requestBody, Config configOptions)static org.json.JSONObjectexpireTransaction(String param)static org.json.JSONObjectexpireTransaction(String param, Config configOptions)static org.json.JSONObjectgetStatusB2b(String param)static org.json.JSONObjectgetStatusB2b(String param, Config configOptions)static org.json.JSONObjectrefundTransaction(String param, Map<String,String> requestBody)static org.json.JSONObjectrefundTransaction(String param, Map<String,String> requestBody, Config configOptions)
-
-
-
Method Detail
-
checkTransaction
public static org.json.JSONObject checkTransaction(String param, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
checkTransaction
public static org.json.JSONObject checkTransaction(String param) throws MidtransError
- Throws:
MidtransError
-
approveTransaction
public static org.json.JSONObject approveTransaction(String param, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
approveTransaction
public static org.json.JSONObject approveTransaction(String param) throws MidtransError
- Throws:
MidtransError
-
denyTransaction
public static org.json.JSONObject denyTransaction(String param, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
denyTransaction
public static org.json.JSONObject denyTransaction(String param) throws MidtransError
- Throws:
MidtransError
-
cancelTransaction
public static org.json.JSONObject cancelTransaction(String param) throws MidtransError
- Throws:
MidtransError
-
cancelTransaction
public static org.json.JSONObject cancelTransaction(String param, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
expireTransaction
public static org.json.JSONObject expireTransaction(String param, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
expireTransaction
public static org.json.JSONObject expireTransaction(String param) throws MidtransError
- Throws:
MidtransError
-
refundTransaction
public static org.json.JSONObject refundTransaction(String param, Map<String,String> requestBody, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
refundTransaction
public static org.json.JSONObject refundTransaction(String param, Map<String,String> requestBody) throws MidtransError
- Throws:
MidtransError
-
directRefundTransaction
public static org.json.JSONObject directRefundTransaction(String param, Map<String,String> requestBody, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
directRefundTransaction
public static org.json.JSONObject directRefundTransaction(String param, Map<String,String> requestBody) throws MidtransError
- Throws:
MidtransError
-
captureTransaction
public static org.json.JSONObject captureTransaction(Map<String,String> requestBody, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
captureTransaction
public static org.json.JSONObject captureTransaction(Map<String,String> requestBody) throws MidtransError
- Throws:
MidtransError
-
getStatusB2b
public static org.json.JSONObject getStatusB2b(String param, Config configOptions) throws MidtransError
- Throws:
MidtransError
-
getStatusB2b
public static org.json.JSONObject getStatusB2b(String param) throws MidtransError
- Throws:
MidtransError
-
-