@@ -53,13 +53,13 @@ |
||
53 | 53 | protected function buildPayHtml($endpoint, $payload, $method = 'POST'): Response |
54 | 54 | { |
55 | 55 | if (strtoupper($method) === 'GET') { |
56 | - return RedirectResponse::create($endpoint.'?'.http_build_query($payload)); |
|
56 | + return RedirectResponse::create($endpoint . '?' . http_build_query($payload)); |
|
57 | 57 | } |
58 | 58 | |
59 | - $sHtml = "<form id='alipay_submit' name='alipay_submit' action='".$endpoint."' method='.$method.'>"; |
|
59 | + $sHtml = "<form id='alipay_submit' name='alipay_submit' action='" . $endpoint . "' method='.$method.'>"; |
|
60 | 60 | foreach ($payload as $key => $val) { |
61 | 61 | $val = str_replace("'", ''', $val); |
62 | - $sHtml .= "<input type='hidden' name='".$key."' value='".$val."'/>"; |
|
62 | + $sHtml .= "<input type='hidden' name='" . $key . "' value='" . $val . "'/>"; |
|
63 | 63 | } |
64 | 64 | $sHtml .= "<input type='submit' value='ok' style='display:none;'></form>"; |
65 | 65 | $sHtml .= "<script>document.forms['alipay_submit'].submit();</script>"; |