Jump to content

Проблема с модулем оплаты Payeer

Featured Replies

Здравствуйте.

Использую модуль оплаты 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

Проблема решена. 

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.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.