@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | $command .= self::INITIAL_METHOD_OF_QR; |
31 | 31 | |
32 | 32 | # Reference Code |
33 | - $ref_01 = $this->f('02', $ref_1); |
|
34 | - $ref_02 = $this->f('03', $ref_2); |
|
33 | + $ref_01 = $this->f('02', $ref_1); |
|
34 | + $ref_02 = $this->f('03', $ref_2); |
|
35 | 35 | $ref_command = self::SCB_PAYMENT_CODE . $billerId . $ref_01 . $ref_02; |
36 | 36 | |
37 | - $command .= $this->f('30', $ref_command); |
|
37 | + $command .= $this->f('30', $ref_command); |
|
38 | 38 | |
39 | 39 | # สกุลเงินบาท |
40 | 40 | $command .= self::TRANSACTION_CURRENCY_THB; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $crc = 0xFFFF; |
74 | 74 | for ($i = 0; $i < strlen($data); $i++) { |
75 | - $x = (($crc >> 8) ^ ord($data[(string)$i])) & 0xFF; |
|
75 | + $x = (($crc >> 8) ^ ord($data[(string) $i])) & 0xFF; |
|
76 | 76 | $x ^= $x >> 4; |
77 | 77 | $crc = (($crc << 8) ^ ($x << 12) ^ ($x << 5) ^ $x) & 0xFFFF; |
78 | 78 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | { |
100 | 100 | $crc = 0xFFFF; |
101 | 101 | for ($i = 0; $i < strlen($data); $i++) { |
102 | - $x = (($crc >> 8) ^ ord($data[(string)$i])) & 0xFF; |
|
102 | + $x = (($crc >> 8) ^ ord($data[(string) $i])) & 0xFF; |
|
103 | 103 | $x ^= $x >> 4; |
104 | 104 | $crc = (($crc << 8) ^ ($x << 12) ^ ($x << 5) ^ $x) & 0xFFFF; |
105 | 105 | } |