-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
78 lines (53 loc) · 4.24 KB
/
index.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
72
73
74
75
76
77
78
<!-- Name : hadiuzzaman
Email: [email protected]
Phone: 01746686868
Designation: Software Engineer -->
<html><title>Secured Payment Gateway || Test by Mamurjor IT</title>
<head>
</head>
<?php
error_reporting(0);
date_default_timezone_set('Asia/Dhaka');
//Generate Unique Transaction ID
function rand_string( $length ) {
$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
$cur_random_value=rand_string(6);
?>
<body>
<form style='margin:0 auto; text-align:center;' action="https://sandbox.aamarpay.com/index.php" method="post" name="form1">
<table border="0" cellpadding="4" cellspacing="2" align="center" style="border-collapse:collapse;">
<input type="hidden" name="store_id" value="aamarpay">
<input type="hidden" name="signature_key" value="28c78bb1f45112f5d40b956fe104645a">
</td></tr>
<tr><td>Merchant Transaction ID: *</td><td><input type="hidden" name="tran_id" value="WEP-<?php echo "$cur_random_value"; ?>">WEP-<?php echo "$cur_random_value"; ?></td></tr>
<tr><td>Pay Amount *</td><td><input type="text" name="amount" value="1"> Taka</td></tr>
<input type="text" name="currency" value="BDT">
<tr><td>Customer Name: *</td><td><input type="text" name="cus_name" value="hadi vai"></td></tr>
<tr><td>Customer Email Address: *</td><td><input type="text" name="cus_email" value="[email protected]"></td></tr>
<tr><td>Customer Address Line 1: </td><td><input type="text" name="cus_add1" value="Mirpur#10"></td></tr>
<tr><td>Customer Address Line 2: </td><td><input type="text" name="cus_add2" value="Mirpur#10"></td></tr>
<tr><td>Customer City: </td><td><input type="text" name="cus_city" value="Dhaka"></td></tr>
<tr><td>Customer State: </td><td><input type="text" name="cus_state" value="Dhaka"></td></tr>
<tr><td>Customer Postal: </td><td><input type="text" name="cus_postcode" value="1206"></td></tr>
<tr><td>Customer Country: </td><td><input type="text" name="cus_country" value="Bangladesh"></td></tr>
<tr><td>Customer Phone: </td><td><input type="text" name="cus_phone" value="01746686868"></td></tr>
<tr><td>Customer Fax: </td><td><input type="text" name="cus_fax" value="01746686868"></td></tr>
<tr><td>VAT Ratio: </td><td><input type="text" name="amount_vatratio" value="0"></td></tr>
<tr><td>VAT : </td><td><input type="text" name="amount_vat" value="0"></td></tr>
<tr><td>TAX Ratio: </td><td><input type="text" name="amount_taxratio" value="0"></td></tr>
<tr><td>TAX: </td><td><input type="text" name="amount_tax" value="0"></td></tr>
<tr><td>Processing Charge Ratio: </td><td><input type="text" name="amount_processingfee_ratio" value="0"></td></tr>
<tr><td>Processing Charge: </td><td><input type="text" name="amount_processingfee" value="0"></td></tr>
<tr><td>Product Description: </td><td><input type="text" name="desc" value="বুফে খাবো টাকা দেন, 01746686868"></td></tr>
<input type="hidden" name="success_url" value="http://www.hadijaman.com/payeasy/success.php">
<input type="hidden" name="fail_url" value = "http://www.hadijaman.com/payeasy/fail.php">
<input type="hidden" name="cancel_url" value = "http://www.hadijaman.com/payeasy/fail.php">
<tr><td><input type="submit" class='button' value="Pay Now" name="pay"><br/></td></tr></table>
</form></center>
</body></html>