-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsamplepayone.php
71 lines (58 loc) · 2.82 KB
/
samplepayone.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
include("config.php");
$_id= $_REQUEST["_id"];
$productData= new productsData();
$productData->getDataValues($_id);
?>
<html>
<head>
<title>
Payment Mode
</title>
</head>
<body>
<center><h1><u> Sample Remita Api Consume</u> </h1></center>
<br/>
<br/>
<center>
<div>
<p> Your Order is: <b> <?php echo $productData->GetProductName(); ?> </b> </p>
</div>
<br/>
<br/>
<center>
<div>
<img src="<?php echo $productData->GetProductImage(); ?>" width="150px" />
<h2> <?php echo $productData->GetProductName(); ?> </h2>
<p><h4><font color=red>Price:</font><?php echo number_format($productData->GetProductAmount(),2); ?> </h4> <p>
</div>
<div id="error_msg"> </div>
<form action="http://www.remitademo.net/remita/ecomm/init.reg" name="SubmitRemitaForm" method="POST">
<input name="merchantId" value="<?php echo merchantId; ?>" type="hidden">
<input name="serviceTypeId" value="<?php echo Service_type_id ; ?>" type="hidden">
<input name="orderId" value="<?php echo $ordid = $productData->genOrderId(); ?>" type="hidden">
<input name="hash" value="<?php echo $productData->getHashValueOne($ordid,$productData->GetProductAmount()); ?>" type="hidden">
<input name="payerName" value="" type="type" placeholder="Supply your Fullname">
<input name="payerEmail" value="" type="text" placeholder="Supply your email">
<input name="payerPhone" value="" type="text" placeholder="Supply your Phone Number">
<select class="required-entry" title="Credit Card Type" name="paymenttype" id="paymenttype" autocomplete="off">
<option>-- Select Payment Type --</option>
<option value="VERVE"> Verve Card</option>
<option value="VISA"> Visa</option>
<option value="MASTERCARD"> MasterCard</option>
<option value="POCKETMONI"> PocketMoni</option>
<option value="POS"> POS</option>
<option value="ATM"> ATM</option>
<option value="BANK_BRANCH">BANK BRANCH</option>
<option value="BANK_INTERNET">BANK INTERNET</option>
<option value="REMITA_PAY"> Remita Account Transfer</option>
</select>
<input name="amt" value="<?php echo $productData->GetProductAmount(); ?>" type="hidden">
<input name="responseurl" value="<?php echo responseurl; ?>" type="hidden">
<input type ="submit" name="submit_btn" value="Continue to Payment Page" >
</form>
</center>
</body>
<script >
</script>
</html>