Commit 01d059c2f633814be0bd9dd5751bf463c6cdfdde

Authored by Adhidarma Hadiwinoto
1 parent 17cd29914b
Exists in master

penanganan gagal dari direct response

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -93,6 +93,10 @@ function directResponseHandler(body, request_id) {
93 93 var request_id = result.pulsamatic.partner_trxid[0].trim();
94 94 var message = result.pulsamatic.message[0].trim();
95 95  
  96 + if (result.pulsamatic.result[0].trim() == 'failed') {
  97 + response_code = '40';
  98 + }
  99 +
96 100 callbackReport(request_id, response_code, message);
97 101 });
98 102