Quellcode durchsuchen

fix callback response

tags/1.0
0nepeop1e vor 4 Jahren
Ursprung
Commit
40adf5fee1
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1
    1
      .idea/workspace.xml
  2. 2
    2
      src/DummyPayDriver.php

+ 1
- 1
.idea/workspace.xml Datei anzeigen

@@ -71,7 +71,7 @@
71 71
       <option name="number" value="Default" />
72 72
       <option name="presentableId" value="Default" />
73 73
       <updated>1600830685900</updated>
74
-      <workItem from="1600830687029" duration="2385000" />
74
+      <workItem from="1600830687029" duration="2597000" />
75 75
     </task>
76 76
     <servers />
77 77
   </component>

+ 2
- 2
src/DummyPayDriver.php Datei anzeigen

@@ -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
     }

Laden…
Abbrechen
Speichern