Skip to content

Commit

Permalink
fix WayForPay payment
Browse files Browse the repository at this point in the history
  • Loading branch information
osben committed Mar 5, 2018
1 parent f1a723a commit f6f1925
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions payment/WayForPay/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

$sign = array();
foreach ($keysForSignature as $dataKey) {
if (in_array($dataKey, $data)) {
if (array_key_exists($dataKey, $data)) {
$sign [] = $data[$dataKey];
}
}
Expand All @@ -68,7 +68,8 @@
$time = time();

$responseToGateway = array(
'orderReference' => $order->id,
// 'orderReference' => $order->id,
'orderReference' => $data['orderReference'],
'status' => 'accept',
'time' => $time
);
Expand Down

0 comments on commit f6f1925

Please sign in to comment.