File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ protected function requestToken ()
44
44
45
45
$ sendParams = [
46
46
'MerchantID ' => $ this ->merchant_id ,
47
- 'Amount ' => intval ( $ this ->amount ),
47
+ 'Amount ' => $ this ->getToman ( ),
48
48
'Description ' => $ this ->description ? $ this ->description : '' ,
49
49
'Email ' => $ this ->email ? $ this ->email : '' ,
50
50
'Mobile ' => $ this ->mobile ? $ this ->mobile : '' ,
@@ -113,7 +113,7 @@ protected function verifyTransaction ()
113
113
$ sendParams = [
114
114
'MerchantID ' => $ this ->merchant_id ,
115
115
'Authority ' => $ this ->Authority ,
116
- 'Amount ' => intval ( $ this ->amount ),
116
+ 'Amount ' => $ this ->getToman ( ),
117
117
];
118
118
119
119
try {
@@ -163,4 +163,9 @@ public function getGatewayReferenceId()
163
163
]);
164
164
return $ this ->Authority ;
165
165
}
166
+
167
+ private function getToman ()
168
+ {
169
+ return (int ) ($ this ->amount / 10 );
170
+ }
166
171
}
You can’t perform that action at this time.
0 commit comments