Skip to content

Instantly share code, notes, and snippets.

@rafeequl
Last active August 29, 2015 14:06
Show Gist options
  • Save rafeequl/9956eff9420cf54e864b to your computer and use it in GitHub Desktop.
Save rafeequl/9956eff9420cf54e864b to your computer and use it in GitHub Desktop.
Notification for debit transactions

#Status explanation reference : (http://docs.veritrans.co.id/sandbox/status_code.html)

##Mandiri clickpay ###success notification

{
    "status_code" : "200",
    "status_message" : "Veritrans payment notification",
    "transaction_id" : "e9ebb49c-9d41-4852-b68f-74e76b5ea8dc",
    "order_id" : "test-steve-02",
    "payment_type" : "mandiri_clickpay",
    "transaction_time" : "2014-10-13 18:13:57",
    "transaction_status" : "settlement",
    "approval_code" : "1413198837387",
    "signature_key" : "bab2b6f13e4e48c88bdc8cd0458751d2e2a388a92492f1a2a9c94cca3163727fe5e957b5fd74483954b2da3d68a4f93692e0fe1a8391b6b6b1bb4ba51cc94c",
    "custom_field1" : "cf1",
    "custom_field2" : "cf2",
    "custom_field3" : "cf3",
    "gross_amount" : "10000.00"
}

###failed /denied transaction notifcation

{
    "status_code" : "202",
    "status_message" : "Veritrans payment notification",
    "transaction_id" : "e9ebb49c-9d41-4852-b68f-74e76b5ea8dc",
    "order_id" : "test-steve-02",
    "payment_type" : "mandiri_clickpay",
    "transaction_time" : "2014-10-13 18:13:57",
    "transaction_status" : "deny",
    "approval_code" : "",
    "signature_key" : "bab2b6f13e4e48c88bdc8cd0458751d2e2a388a92492f1a2a9c94cca3163727fe5e957b5fd74483954b2da3d68a4f93692e0fe1a8391b6b6b1bb4ba51cc94c",
    "custom_field1" : "cf1",
    "custom_field2" : "cf2",
    "custom_field3" : "cf3",
    "gross_amount" : "10000.00"
}

##BRI epay ###pending notification ==> waiting for customer payment

{
    "status_code": "201",
    "status_message": "Veritrans payment notification",
    "transaction_id": "68cebcbd-5894-4a09-84e1-b9952b3dcf1d",
    "order_id": "2014101501",
    "payment_type": "bri_epay",
    "transaction_time": "2014-10-15 14:14:30",
    "transaction_status": "pending",
    "signature_key": "51b56043315bc55434517ea69ab8738750204880e4dd28c9e87ad03d101ee393239d70e5341d10c1cb1179e884fef9e27c7ce75255af2a5b434c63a41da",
    "custom_field1": "cf1",
    "custom_field2": "cf2",
    "custom_field3": "cf3",
    "gross_amount": "10000.00"
}

###success notification ==> customer successfully paid the transaction

{
    "status_code": "200",
    "status_message": "Veritrans payment notification",
    "transaction_id": "68cebcbd-5894-4a09-84e1-b9952b3dcf1d",
    "order_id": "2014101501",
    "payment_type": "bri_epay",
    "transaction_time": "2014-10-15 14:14:30",
    "transaction_status": "settlement",
    "signature_key": "a4b568469d4da65e7a3dffd6f73fbfbcbf7227823b570f17973b7647535fff68c0dad37a59a2a6c64b787e48a6cf381f04949bce22bbae7c12177a577",
    "custom_field1": "cf1",
    "custom_field2": "cf2",
    "custom_field3": "cf3",
    "gross_amount": "10000.00"
}

###expire notification ==> customer failed to do full payment (payment expired)

{
    "status_code": "202",
    "status_message": "Veritrans payment notification",
    "transaction_id": "21a64a5b-f991-4cbe-97ff-688f44cf6e33",
    "order_id": "2014101502",
    "payment_type": "bri_epay",
    "transaction_time": "2014-10-15 14:23:52",
    "transaction_status": "expire",
    "signature_key": "b09e3b377089dde7e3177ef8e2b9247bc624c4978f25d7c66569b99d3f1fe08373e221613780f3231d2d42d9f51fc8e9274e848e8db1bf2d44f0c81c9ddc2b",
    "custom_field1": "cf1",
    "custom_field2": "cf2",
    "custom_field3": "cf3",
    "gross_amount": "10000.00"
}

###deny notification ==> transaction failed

{
    "status_code": "202",
    "status_message": "Veritrans payment notification",
    "transaction_id": "21a64a5b-f991-4cbe-97ff-688f44cf6e33",
    "order_id": "2014101502",
    "payment_type": "bri_epay",
    "transaction_time": "2014-10-15 14:23:52",
    "transaction_status": "deny",
    "signature_key": "b09e3b377089dde7e3177ef8e2b9247bc624c4978f25d7c66569b99d3f1fe08373e221613780f3231d2d42d9f51fc8e9274e848e8db1bf2d44f0c81c9ddc2b",
    "custom_field1": "cf1",
    "custom_field2": "cf2",
    "custom_field3": "cf3",
    "gross_amount": "10000.00"
}

##KlikBCA ###pending notification ==> waiting for customer payment

{
    "status_code": "201",
    "status_message": "Veritrans payment notification",
    "transaction_id": "c3556171-5710-4c0a-945f-c459a2b52654",
    "order_id": "2014101504",
    "payment_type": "bca_klikbca",
    "transaction_time": "2014-10-15 15:12:36",
    "transaction_status": "pending",
    "signature_key": "231b7ce386ba86f39c34d4ce0786849aa8f794eac4a78e126edeccf9142a8bca863f645e307f636a7a90c178c2bafab1f97e6249236a1525cce066d6e28",
    "custom_field1": "cf1",
    "custom_field2": "cf2",
    "custom_field3": "cf3",
    "gross_amount": "10000.00"
}

###success notification ==> customer successfully paid the transaction

{
    "status_code": "200",
    "status_message": "Veritrans payment notification",
    "transaction_id": "c3556171-5710-4c0a-945f-c459a2b52654",
    "order_id": "2014101504",
    "payment_type": "bca_klikbca",
    "transaction_time": "2014-10-15 15:12:36",
    "transaction_status": "settlement",
    "signature_key": "231b7ce386ba86f39c34d4ce0786849aa8f794eac4a78e126edeccf9142a8bca863f645e307f636a7a90c178c2bafab1f97e6249236a1525cce066d6e28",
    "custom_field1": "cf1",
    "custom_field2": "cf2",
    "custom_field3": "cf3",
    "gross_amount": "10000.00"
}

###expire notification ==> customer failed to do full payment (payment expired)

{
    "status_code": "202",
    "status_message": "Veritrans payment notification",
    "transaction_id": "c3556171-5710-4c0a-945f-c459a2b52654",
    "order_id": "2014101504",
    "payment_type": "bca_klikbca",
    "transaction_time": "2014-10-15 15:12:36",
    "transaction_status": "expire",
    "signature_key": "231b7ce386ba86f39c34d4ce0786849aa8f794eac4a78e126edeccf9142a8bca863f645e307f636a7a90c178c2bafab1f97e6249236a1525cce066d6e28",
    "custom_field1": "cf1",
    "custom_field2": "cf2",
    "custom_field3": "cf3",
    "gross_amount": "10000.00"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment