-1

嗨,我是新手PHP,我想PayUMoney与 core集成PHP。谁能告诉我如何进行PayUMoneyin core的集成PHP。这是我的代码

控制器:

<?php       
    $results = $db->query("SELECT * FROM courses");
    while($row = $results->fetch_assoc())
    {
   ?>
   <img src="images/<?php echo $row['image'];  ?>" style = "width:20%;"/>
   <br/><strong>Course:</strong> <?php echo $row['name']; ?>
   <strong>Price:</strong> <?php echo $row['price']; ?>
   <form action="http://www.payumoney.com" method="post">

   <input type="hidden" name="business" value="ashalatha.cse76@gmail.com">

   <input type="hidden" name="cmd" value="_xclick">

   <input type="hidden" name="item_name" value="<?php echo $row['name']; ?>">
   <input type="hidden" name="item_number" value="<?php echo $row['id']; ?>">
   <input type="hidden" name="amount" value="<?php echo $row['price']; ?>">
   <input type="hidden" name="currency_code" value="USD">

   <input type="image" name="submit" border="0" style="width:9%;"
   src="buynow.png" alt="PayPal - The safer, easier way to pay online">
   <img alt="" border="0" width="1" height="1" src="" >

   </form>
   <?php } ?>
4

1 回答 1

0

此 OpenPayu sdk 仅适用于波兰市场。您可以在下面的链接中更改配置https://github.com/PayU/openpayu_php/blob/master/lib/OpenPayU/Configuration.php 并调整为参数。

于 2016-02-08T19:44:57.667 回答