首页 文章

支付U集成

提问于
浏览
7

我正在尝试将 payU 集成到 eshop ,我可以't figure out where i am going wrong since long time. Now I'我正在尝试使用这些类https://bitbucket.org/meritoo/zend-framework-payu-integration-library/src

有人遇到过类似的问题吗?我认为它还没有实现,因为我找不到如何将数据发送到payu的情况,因为方法 $this->getParameters(true) 返回空数组 . 我在哪里可以为payu设置参数以及如何设置?

1 回答

  • 1

    这是表格,你可以用来整合PAY U,支付gatway,

    <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
    

相关问题