diff --git a/payment/WayForPay/callback.php b/payment/WayForPay/callback.php index e9c9548..c492d67 100644 --- a/payment/WayForPay/callback.php +++ b/payment/WayForPay/callback.php @@ -55,7 +55,7 @@ $sign = array(); foreach ($keysForSignature as $dataKey) { - if (in_array($dataKey, $data)) { + if (array_key_exists($dataKey, $data)) { $sign [] = $data[$dataKey]; } } @@ -68,7 +68,8 @@ $time = time(); $responseToGateway = array( - 'orderReference' => $order->id, +// 'orderReference' => $order->id, + 'orderReference' => $data['orderReference'], 'status' => 'accept', 'time' => $time );