如何在核心php中集成PayUMoney


How to integrate PayUMoney in core php

嗨,我是PHP的新成员,我想将PayUMoney核心PHP集成。有人能告诉我如何在核心PHP中集成PayUMoney吗。这是我的代码

控制器:

<?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 } ?>

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