|
4 | 4 |
|
5 | 5 | require '../../template/_header.php';
|
6 | 6 |
|
| 7 | +$url = $base_url . 'form.php'; |
7 | 8 | ?>
|
8 | 9 |
|
9 |
| -<form method="post" action="<?php echo $gateway; ?>" role="form"> |
| 10 | +<form method="post" action="<?php echo $url; ?>" role="form"> |
10 | 11 | <div class="row">
|
| 12 | + <div class="form-group col-sm-12"> |
| 13 | + <label for="name">Card holder name</label> |
| 14 | + <input type="text" name="name" id="name" class="form-control input-lg" placeholder="Card holder name"> |
| 15 | + </div> |
11 | 16 | <div class="form-group col-sm-3">
|
12 |
| - <label for="cardType">Card Type</label> |
13 |
| - <select name="cardType" id="cardType" class="form-control input-lg"> |
| 17 | + <label for="type">Card Type</label> |
| 18 | + <select name="type" id="type" class="form-control input-lg"> |
14 | 19 | <option value="">Type</option>
|
15 |
| - <option value="1">Visa</option> |
16 |
| - <option value="2">MasterCard</option> |
| 20 | + <option value="visa">Visa</option> |
| 21 | + <option value="master">MasterCard</option> |
17 | 22 | </select>
|
18 | 23 | </div>
|
19 | 24 | <div class="form-group col-sm-9">
|
20 |
| - <label for="pan">Card Number</label> |
21 |
| - <input type="text" name="pan" id="pan" class="form-control input-lg" placeholder="Credit card number"> |
| 25 | + <label for="number">Card Number</label> |
| 26 | + <input type="text" name="number" id="number" class="form-control input-lg" placeholder="Credit card number"> |
22 | 27 | </div>
|
23 | 28 | <div class="form-group col-sm-4">
|
24 |
| - <label for="Ecom_Payment_Card_ExpDate_Month">Expire Month</label> |
25 |
| - <select name="Ecom_Payment_Card_ExpDate_Month" id="Ecom_Payment_Card_ExpDate_Month" class="form-control input-lg"> |
| 29 | + <label for="month">Expire Month</label> |
| 30 | + <select name="month" id="month" class="form-control input-lg"> |
26 | 31 | <option value="">Month</option>
|
27 | 32 | <?php for ($i = 1; $i <= 12; $i++): ?>
|
28 | 33 | <option value="<?php echo $i; ?>"><?php echo str_pad($i, 2, 0, STR_PAD_LEFT); ?></option>
|
29 | 34 | <?php endfor; ?>
|
30 | 35 | </select>
|
31 | 36 | </div>
|
32 | 37 | <div class="form-group col-sm-4">
|
33 |
| - <label for="Ecom_Payment_Card_ExpDate_Year">Expire Year</label> |
34 |
| - <select name="Ecom_Payment_Card_ExpDate_Year" id="Ecom_Payment_Card_ExpDate_Year" class="form-control input-lg"> |
| 38 | + <label for="year">Expire Year</label> |
| 39 | + <select name="year" id="year" class="form-control input-lg"> |
35 | 40 | <option value="">Year</option>
|
36 | 41 | <?php for ($i = date('y'); $i <= date('y') + 20; $i++): ?>
|
37 | 42 | <option value="<?php echo $i; ?>"><?php echo 2000 + $i; ?></option>
|
38 | 43 | <?php endfor; ?>
|
39 | 44 | </select>
|
40 | 45 | </div>
|
41 | 46 | <div class="form-group col-sm-4">
|
42 |
| - <label for="cv2">Cvv</label> |
43 |
| - <input type="text" name="cv2" id="cv2" class="form-control input-lg" placeholder="Cvv"> |
| 47 | + <label for="cvv">Cvv</label> |
| 48 | + <input type="text" name="cvv" id="cvv" class="form-control input-lg" placeholder="Cvv"> |
44 | 49 | </div>
|
45 | 50 | </div>
|
46 |
| - <?php if (isset($order['name'])): ?> |
47 |
| - <input type="hidden" name="firmaadi" value="<?php echo $order['name']; ?>"> |
48 |
| - <?php endif; ?> |
49 |
| - <?php if (isset($order['email'])): ?> |
50 |
| - <input type="hidden" name="Email" value="<?php echo $order['email']; ?>"> |
51 |
| - <?php endif; ?> |
52 |
| - <input type="hidden" name="clientid" value="<?php echo $account['client_id']; ?>" /> |
53 |
| - <input type="hidden" name="amount" value="<?php echo $order['amount']; ?>" /> |
54 |
| - <input type="hidden" name="islemtipi" value="<?php echo $order['transaction_type']; ?>" /> |
55 |
| - <input type="hidden" name="taksit" value="<?php echo $order['installment']; ?>" /> |
56 |
| - <input type="hidden" name="oid" value="<?php echo $order['id']; ?>" /> |
57 |
| - <input type="hidden" name="okUrl" value="<?php echo $order['ok_url']; ?>" /> |
58 |
| - <input type="hidden" name="failUrl" value="<?php echo $order['fail_url']; ?>" /> |
59 |
| - <input type="hidden" name="rnd" value="<?php echo $rand; ?>" /> |
60 |
| - <input type="hidden" name="hash" value="<?php echo $hash; ?>" /> |
61 |
| - <input type="hidden" name="storetype" value="<?php echo $account['model']; ?>" /> |
62 |
| - <input type="hidden" name="lang" value="<?php echo $order['lang']; ?>" /> |
63 |
| - <input type="hidden" name="currency" value="<?php echo $currency; ?>" /> |
64 | 51 | <hr>
|
65 | 52 | <div class="form-group text-center">
|
66 | 53 | <button type="submit" class="btn btn-lg btn-block btn-success">Payment</button>
|
|
0 commit comments