@@ -71,13 +71,13 @@ |
||
71 | 71 | protected function buildPayHtml($endpoint, $payload, $method = 'POST'): Response |
72 | 72 | { |
73 | 73 | if (strtoupper($method) === 'GET') { |
74 | - return RedirectResponse::create($endpoint.'?'.http_build_query($payload)); |
|
74 | + return RedirectResponse::create($endpoint . '?' . http_build_query($payload)); |
|
75 | 75 | } |
76 | 76 | |
77 | - $sHtml = "<form id='alipay_submit' name='alipay_submit' action='".$endpoint."' method='".$method."'>"; |
|
77 | + $sHtml = "<form id='alipay_submit' name='alipay_submit' action='" . $endpoint . "' method='" . $method . "'>"; |
|
78 | 78 | foreach ($payload as $key => $val) { |
79 | 79 | $val = str_replace("'", ''', $val); |
80 | - $sHtml .= "<input type='hidden' name='".$key."' value='".$val."'/>"; |
|
80 | + $sHtml .= "<input type='hidden' name='" . $key . "' value='" . $val . "'/>"; |
|
81 | 81 | } |
82 | 82 | $sHtml .= "<input type='submit' value='ok' style='display:none;'></form>"; |
83 | 83 | $sHtml .= "<script>document.forms['alipay_submit'].submit();</script>"; |