Skip to content

Commit

Permalink
Update Provider.php (#12)
Browse files Browse the repository at this point in the history
TypeError - return value of PRCODE or SRCODE is int. Not string.
  • Loading branch information
janharsa authored and ondraondra81 committed Feb 16, 2018
1 parent ca56771 commit 96c07cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pixidos/GPWebPay/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function createResponse(array $params): IResponse
$ordernumber = $params['ORDERNUMBER'] ?: '';
$merordernum = $params['MERORDERNUM'] ?: null;
$md = $params['MD'] ?: null;
$prcode = $params['PRCODE'] ?: '';
$srcode = $params['SRCODE'] ?: '';
$prcode = (int) $params['PRCODE'] ?: 1000;
$srcode = (int) $params['SRCODE'] ?: 0;
$resulttext = $params['RESULTTEXT'] ?: null;
$digest = $params['DIGEST'] ?: '';
$digest1 = $params['DIGEST1'] ?: '';
Expand Down

0 comments on commit 96c07cc

Please sign in to comment.