@@ -113,7 +113,7 @@ $gateway = Omnipay::create('Sberbank');
113113$response = $gateway->authorize(
114114 [
115115 'orderNumber' => $localOrderNumber, // local order number
116- 'amount' => $order_amount, // The amount of payment (you can use integer, decimal with 2 precisions or string equal to decimal
116+ 'amount' => $order_amount, // The amount of payment (you can use decimal with 2 precisions for copecs or string equal to decimal)
117117 'returnUrl' => $callback_url, // succesfull callback url
118118 'description' => 'Order Description'
119119 ]
@@ -161,7 +161,7 @@ $gateway = Omnipay::create('Sberbank');
161161$response = $gateway->authorize(
162162 [
163163 'orderNumber' => $localOrderNumber, // local order number
164- 'amount' => $order_amount, // The amount of payment (you can use integer, decimal with 2 precisions or string equal to decimal
164+ 'amount' => $order_amount, // The amount of payment (you can use decimal with 2 precisions for copecs or string equal to decimal)
165165 'returnUrl' => $callback_url, // succesfull callback url
166166 'description' => 'Order Description'
167167 ]
@@ -210,7 +210,7 @@ $gateway = Omnipay::create('Sberbank');
210210$response = $gateway->capture(
211211 [
212212 'orderId' => $localOrderNumber, // gateway order number
213- 'amount' => $order_amount, // The amount of payment (you can use integer, decimal with 2 precisions or string equal to decimal
213+ 'amount' => $order_amount, // The amount of payment (you can use decimal with 2 precisions for copecs or string equal to decimal)
214214 ]
215215)->setUserName('merchant_login')
216216 ->setPassword('merchant_password')
@@ -396,7 +396,7 @@ $response = $gateway->refund(
396396 [
397397 'orderId' => $localOrderNumber, // gateway order number
398398 'language' => 'en',
399- 'amount' => $oder_amount // The amount of payment in kopecks ( or cents )
399+ 'amount' => $oder_amount // // The amount of payment (you can use decimal with 2 precisions for copecs or string equal to decimal )
400400 ]
401401)->setUserName('merchant_login')
402402 ->setPassword('merchant_password')
0 commit comments