Posted 8 июня, 20168 yr comment_108339 Здравствуйте. Использую модуль оплаты 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 Link to comment https://ipbmafia.ru/topic/14621-problema-s-modulem-oplaty-payeer/ Share on other sites Больше вариантов
9 июня, 20168 yr Author comment_108378 Проблема решена. 34 строку изменяем на $m_amount = number_format((string)$transaction->amount->amount, 2, '.', ''); Link to comment https://ipbmafia.ru/topic/14621-problema-s-modulem-oplaty-payeer/?&do=findComment&comment=108378 Share on other sites Больше вариантов
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.