Completed
Push — master ( 867225...9deef3 )
by Songda
01:47
created
src/Gateways/Alipay/WebGateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@
 block discarded – undo
51 51
      */
52 52
     protected function buildPayHtml($endpoint, $payload, $method = 'POST'): Response
53 53
     {
54
-        $sHtml = "<form id='alipay_submit' name='alipay_submit' action='".$endpoint."' method='.$method.'>";
54
+        $sHtml = "<form id='alipay_submit' name='alipay_submit' action='" . $endpoint . "' method='.$method.'>";
55 55
         foreach ($payload as $key => $val) {
56 56
             $val = str_replace("'", '&apos;', $val);
57
-            $sHtml .= "<input type='hidden' name='".$key."' value='".$val."'/>";
57
+            $sHtml .= "<input type='hidden' name='" . $key . "' value='" . $val . "'/>";
58 58
         }
59 59
         $sHtml .= "<input type='submit' value='ok' style='display:none;'></form>";
60 60
         $sHtml .= "<script>document.forms['alipay_submit'].submit();</script>";
Please login to merge, or discard this patch.