Skip to content

Commit

Permalink
Update PaytabsPayment.php
Browse files Browse the repository at this point in the history
  • Loading branch information
samehdoush committed May 11, 2023
1 parent c93489b commit aa5c1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/PaytabsPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit aa5c1f3

Please sign in to comment.