您好我是 PHP
的新手,我想将 PayUMoney
与核心 PHP
进行整合。任何人都可以告诉我如何在核心 PayUMoney
中集成 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 } ?>
答案 0 :(得分:0)
这个OpenPayu sdk仅适用于波兰市场。您可以在https://github.com/PayU/openpayu_php/blob/master/lib/OpenPayU/Configuration.php下面的链接中更改配置 并调整为参数。