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 ()
4444
4545 $ sendParams = [
4646 'MerchantID ' => $ this ->merchant_id ,
47- 'Amount ' => intval ( $ this ->amount ),
47+ 'Amount ' => $ this ->getToman ( ),
4848 'Description ' => $ this ->description ? $ this ->description : '' ,
4949 'Email ' => $ this ->email ? $ this ->email : '' ,
5050 'Mobile ' => $ this ->mobile ? $ this ->mobile : '' ,
@@ -113,7 +113,7 @@ protected function verifyTransaction ()
113113 $ sendParams = [
114114 'MerchantID ' => $ this ->merchant_id ,
115115 'Authority ' => $ this ->Authority ,
116- 'Amount ' => intval ( $ this ->amount ),
116+ 'Amount ' => $ this ->getToman ( ),
117117 ];
118118
119119 try {
@@ -163,4 +163,9 @@ public function getGatewayReferenceId()
163163 ]);
164164 return $ this ->Authority ;
165165 }
166+
167+ private function getToman ()
168+ {
169+ return (int ) ($ this ->amount / 10 );
170+ }
166171}
You can’t perform that action at this time.
0 commit comments