Php Can';无法在2checkout响应中获取自定义参数

Php Can';无法在2checkout响应中获取自定义参数,php,2checkout,Php,2checkout,我的表格代码如下。并添加ram作为隐藏输入。我想在这里添加我的订单 <form id="2checkout" action="https://sandbox.2checkout.com/checkout/purchase" method="post"> <input type="hidden" name="sid" value="901353720"/> <input type="hidden" name="mode" value="2CO"/> <in

我的表格代码如下。并添加
ram
作为隐藏输入。我想在这里添加我的订单

<form id="2checkout" action="https://sandbox.2checkout.com/checkout/purchase" method="post">
<input type="hidden" name="sid" value="901353720"/>
<input type="hidden" name="mode" value="2CO"/>
<input type="hidden" name="li_0_name" value="Test Product"/>
<input type="hidden" name="li_0_price" value="0.01"/>
<input type="hidden" name="ramram" value="512" />
<input type="submit" value="Click here if you are not redirected automatically" />
</form>
<script type="text/javascript">document.getElementById('2checkout').submit();</script>

document.getElementById('2checkout').submit();
为了得到响应,我使用了以下代码

<?php

$html = '';
foreach ($_POST as $k => $v) {
    $html .= "$k => $v"; echo PHP_EOL;
}

file_put_contents('test.txt', $html); ?>

使用特定的
名称

例如

有关更多参数,请参见

参考文献