|
@@ -41,7 +41,7 @@ class DummyPayDriver implements PaymentGatewayDriver
|
41
|
41
|
public function verifyGatewayCallback(Request $request, Response &$response = null): bool
|
42
|
42
|
{
|
43
|
43
|
if($request->query->has('status')){
|
44
|
|
- Res::redirectTo($this->return_url);
|
|
44
|
+ $response = Res::redirectTo($this->return_url);
|
45
|
45
|
return $request->query->get('status') == 'success';
|
46
|
46
|
} else {
|
47
|
47
|
$order_id = $request->query->get('order_id');
|
|
@@ -51,7 +51,7 @@ class DummyPayDriver implements PaymentGatewayDriver
|
51
|
51
|
$this->callback_url.'?'.http_build_query(['order_id' => $order_id, 'status' => 'success']),
|
52
|
52
|
$this->callback_url.'?'.http_build_query(['order_id' => $order_id, 'status' => 'failed'])
|
53
|
53
|
);
|
54
|
|
- Res::make($html);
|
|
54
|
+ $response = Res::make($html);
|
55
|
55
|
return false;
|
56
|
56
|
}
|
57
|
57
|
}
|