kotovartur Posted June 8, 2016 Report Share Posted June 8, 2016 Здравствуйте. Использую модуль оплаты Payeer. При проведении оплаты выходит ошибка Цитата ErrorException: number_format() expects parameter 1 to be double, object given (2) #0 [internal function]: IPS\IPS::errorHandler(2, 'number_format()...', '/var/www/u****..', 34, Array) #1 /var/www/u0***/data/www/****.xyz/applications/nexus/sources/Gateway/Payeer/Payeer.php(34): number_format(Object(IPS\Math\Number), 2, '.', '') Как починить? Писал в поддержку, они говорят, что в переменной дается объект, а не число. Как исправить, я не знаю... ips4_master.zip Quote Link to comment Share on other sites More sharing options...
kotovartur Posted June 9, 2016 Author Report Share Posted June 9, 2016 Проблема решена. 34 строку изменяем на $m_amount = number_format((string)$transaction->amount->amount, 2, '.', ''); lionel 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.