Skip to content

Commit

Permalink
增加整合式支付頁支援代理商模式
Browse files Browse the repository at this point in the history
  • Loading branch information
payuni committed Jun 12, 2024
1 parent 46e297e commit 5db928f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/PayuniApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,9 @@ private function HtmlApi()
{
$htmlprint = "<html><body onload='document.getElementById(\"upp\").submit();'>";
$htmlprint .= "<form action='" . $this->curlUrl . "' method='post' id='upp'>";
$htmlprint .= "<input name='MerID' type='hidden' value='" . $this->parameter['MerID'] . "' />";
$htmlprint .= "<input name='Version' type='hidden' value='" . $this->parameter['Version'] . "' />";
$htmlprint .= "<input name='EncryptInfo' type='hidden' value='" . $this->parameter['EncryptInfo'] . "' />";
$htmlprint .= "<input name='HashInfo' type='hidden' value='" . $this->parameter['HashInfo'] . "' />";
foreach ($this->parameter as $key => $value) {
$htmlprint .= "<input name='" . $key . "' type='hidden' value='" . $value . "' />";
}
$htmlprint .= "</form></body></html>";
echo $htmlprint;
}
Expand Down

0 comments on commit 5db928f

Please sign in to comment.