diff --git a/src/Classes/PaytabsPayment.php b/src/Classes/PaytabsPayment.php index f7de08c..455ee07 100644 --- a/src/Classes/PaytabsPayment.php +++ b/src/Classes/PaytabsPayment.php @@ -100,7 +100,7 @@ public function pay( public function verify(Request $request): array { - $payment_id = $request->tranRef!=null?$request->tranRef:Cache::get($request->payment_id); + $payment_id = $request->tranRef!=null?$request->tranRef:Cache::get($request['tranRef']); Cache::forget($request['tranRef']); $response = Http::withHeaders([