Commit ce8b66daa43b9c9ed5028a36c013b6f2412bd5ad

Authored by Adhidarma Hadiwinoto
1 parent 6a4a91626d
Exists in master

koreksi urutan retval.raw

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

partner-masterpulsa-voucher.js
... ... @@ -72,9 +72,6 @@ function calculateSignature(cid, secret, dt) {
72 72  
73 73 function parsePaymentResponse(message) {
74 74 var data = message.split('#');
75   - var retval = {
76   - raw: message
77   - };
78 75  
79 76 if (data[0] == 'ERROR') {
80 77 retval = {
... ... @@ -98,6 +95,8 @@ function parsePaymentResponse(message) {
98 95 }
99 96 }
100 97  
  98 + var retval.raw = message;
  99 +
101 100 return retval;
102 101 }
103 102  
... ... @@ -140,7 +139,7 @@ function getST24ResponseCode(supplierResponseCode) {
140 139 else if (supplierResponseCode == '15') {
141 140 st24rc = '14';
142 141 }
143   - else if (['05', '18', '63', '68', '96'].indexOf(supplierResponseCode) >= 0) {
  142 + else if (['05', '18', '63', '68'].indexOf(supplierResponseCode) >= 0) {
144 143 st24rc = '68';
145 144 }
146 145 else if (supplierResponseCode == '67') {