{
"payment_type": "credit_card",
"credit_card": {
"token_id": "4811117d16c884-2cc7-4624-b0a8-10273b7f6cc8",
"point_redeem_amount": 145000
},
"transaction_details": {
"order_id": "A87550",
"gross_amount": 145000
}
}
To perform point transaction, you need to send point_redeem_amount
parameter. You can get the value from Point Inquiry API. Currently, point transaction is only supported by BNI and Mandiri.
Note:
Please get new card token if want to check point inquiry before and after charge call
The credit_card
object in Charge request for Point feature is identical with Card Charge Request, with the additional attributes given below.
JSON Attribute | Description | Type |
---|---|---|
token_id | Token ID represents customer's card information acquired from Get Card Token response. | String |
bank | The name of the Acquiring Bank. To make sure the request is going on-us. | String |
point_redeem_amount | Amount to be redeemed with point. Note: Use -1 for full redemption. For Mandiri, you can only do full redemption. For partial redemption in BNI, you can redeem the point_redeem_amount lesser than the point_balance_amount received on Point Inquiry API. | Long |
Point Charge Response and Notifications
{
"status_code": "200",
"status_message": "Success, Credit Card 3D Secure transaction is successful",
"transaction_id": "f50c0aef-b629-4a5b-957b-4c52f45e2e63",
"order_id": "A87550",
"payment_type": "credit_card",
"transaction_time": "2014-08-25 11:21:48",
"transaction_status": "capture",
"fraud_status": "accept",
"masked_card": "48111111-1114",
"point_redeem_amount": 145000,
"point_redeem_quantity": 1450,
"point_balance_amount": "0.00",
"approval_code": "1408940508666",
"gross_amount": "145000.00",
"bank": "bni",
"channel_response_code": "00",
"channel_response_message": "Approved",
"currency": "IDR",
"on_us": false
}
{
"masked_card": "48111111-1114",
"approval_code": "1408940508666",
"bank": "bni",
"eci": "05",
"point_redeem_amount": 145000,
"point_redeem_quantity": 1450,
"point_balance_amount": "0.00",
"transaction_time": "2014-08-25 11:21:48",
"gross_amount": "145000.00",
"order_id": "A87550",
"payment_type": "credit_card",
"signature_key": "c77f17bf6a8dee35c19f02f2c33f9e4a2ee61b4bad15370a9f0f149a96909c8d887a0e0cddeb47bd02e88f369422aee6e323aaf938bb7bc5c55228459babbdb1",
"status_code": "200",
"transaction_id": "f50c0aef-b629-4a5b-957b-4c52f45e2e63",
"transaction_status": "capture",
"fraud_status": "accept",
"status_message": "midtrans payment notification",
"channel_response_code": "00",
"channel_response_message": "Approved",
"card_type": "credit",
"on_us": true
}
Point Charge response is identical with Card Payment Charge Response, with the additional attributes given below.
JSON Attribute | Description | Type |
---|---|---|
point_redeem_amount | Amount redeemed in IDR. | Long |
point_redeem_quantity | Point representation of point_redeem_amount . | Long |
point_balance_amount | Balance amount in IDR. | String |