嗨,我是新手PHP
,我想PayUMoney
与 core集成PHP
。谁能告诉我如何进行PayUMoney
in 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 } ?>