Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix array_merge exception - 'Argument #1 is not array' #10

Merged
merged 1 commit into from Jun 15, 2018

Conversation

nezhelskoy
Copy link
Contributor

С недавних пор при попытке оплатить услугу посредством Unitpay стала появляться ошибка у клиента:

68747470733a2f2f6d6f6e6f736e61702e636f6d2f66696c652f695243366f6a4f39424b7a30704767477850705733766138313948514c512e706e67

При отладке обнаружил следующую ошибку:

q9c79

Полагаю, виной этому послужил последний pull request #9 , где не проработан случай, когда не требуются определять новые доп. параметры, как в нашем случае.

Поэтому предлагаю микро исправление для случаев, когда не задано ни одного параметра из нового функционала:

$unitPay
    ->setBackUrl('http://domain.com')
    ->setCustomerEmail('customer@domain.com')
    ->setCustomerPhone('79001235555')
    ->setCashItems(array(
       new CashItem($itemName, 1, $orderSum) 
    ));

@m16a1 m16a1 merged commit 301544b into unitpay:master Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants