Commit 866d1d2c166f2a3636b8b3bfa9e3829226affa9b
1 parent
53eca14902
Exists in
master
sn panjang 16 karakter
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
partner-masterpulsa-voucher.js
... | ... | @@ -116,14 +116,13 @@ function rehashRefnum(refnum) { |
116 | 116 | var hashed = refnum; |
117 | 117 | try { |
118 | 118 | hashed = hashed.replace(/A/g, '1').replace(/B/g, '2').replace(/C/g, '3').replace(/D/g, '4').replace(/E/g, '5').replace('/F/g', '6'); |
119 | + hashed = hashed.substring(0, 15); | |
119 | 120 | } |
120 | 121 | catch(err) { |
122 | + logger.warn('Gagal rehashRefnum: ' + err); | |
121 | 123 | hashed = refnum; |
122 | 124 | } |
123 | 125 | return hashed; |
124 | - | |
125 | - | |
126 | - | |
127 | 126 | } |
128 | 127 | |
129 | 128 | function reportPaymentSuccess(task, response) { |