Skip to content

Commit

Permalink
fix verify PaytabsPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
samehdoush committed May 11, 2023
1 parent 17609f9 commit c93489b
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['tranRef']);
$payment_id = $request->tranRef!=null?$request->tranRef:Cache::get($request->payment_id);
Cache::forget($request['tranRef']);

$response = Http::withHeaders([
Expand Down

0 comments on commit c93489b

Please sign in to comment.