我正在尝试将payU
整合到eshop
,而且我无法弄清楚我的错误在哪里很长时间了。
现在我正在尝试使用这些类https://bitbucket.org/meritoo/zend-framework-payu-integration-library/src
有人遇到过类似的问题吗?我认为它还没有实现,因为我找不到如何将数据发送到payu的情况,因为方法$this->getParameters(true)
返回空数组。我在哪里可以为payu设置参数以及如何设置?
答案 0 :(得分:1)
这是表格,您可以用于集资PAY U,支付通道,
<form method="post" action="https://secure.payu.com/api/v2_1/orders">
<input type="hidden" name="continueUrl" value="http://shop.url/continue" >
<input type="hidden" name="currencyCode" value="PLN" >
<input type="hidden" name="customerIp" value="123.123.123.123" >
<input type="hidden" name="description" value="Order description" >
<input type="hidden" name="merchantPosId" value="145227" >
<input type="hidden" name="notifyUrl" value="http://shop.url/notify" >
<input type="hidden" name="products[0].name" value="Product 1" >
<input type="hidden" name="products[0].quantity" value="1" >
<input type="hidden" name="products[0].unitPrice" value="1000" >
<input type="hidden" name="totalAmount" value="1000" >
<input type="hidden" name="OpenPayu-Signature" value="sender=145227;algorithm=MD5;signature=5fa8d94670eee6d182e930a0ccf9c2c6" >
<button type="submit" formtarget="_blank" >Pay with PayU</button>
</form >
您需要确保动态获取所有值,如产品名称,价格,数量等。另外,请在
处查看更多信息http://developers.payu.com/en/restapi.html