-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathPaymentInquiry.php
More file actions
55 lines (43 loc) · 1.58 KB
/
PaymentInquiry.php
File metadata and controls
55 lines (43 loc) · 1.58 KB
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
<?php include('menu.php');?>
<form action="" method="post" class="form-horizontal">
<fieldset>
<!-- Form Name -->
<legend>Ödeme Sorgulama</legend>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="">Sipariş Numarası:</label>
<div class="col-md-4">
<input name="orderId" type="text" value="64B79163-44EB-4CEC-972A-0776E52F32BA"
class="form-control input-md" required="">
</div>
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for=""></label>
<div class="col-md-4">
<button type="submit" id="" name="" class="btn btn-success">Sorgula</button>
</div>
</div>
</fieldset>
</form>
<?php if (!empty($_POST)): ?>
<?php
/*
* Setting ayarlarımızı alıyoruz.
* Formdan gelen bilgilerle PaymentInquiryRequest sınıfımızı dolduruyoruz
* PaymentInquiryRequest ve Setting ayarlarımızla sayfamızı post ediyoruz.
*/
$settings = new Settings ();
$request = new PaymentInquiryRequest ();
$request->orderId = $_POST ["orderId"];
$request->Echo = "Echo";
$request->Mode = $settings->Mode;
$response = PaymentInquiryRequest::execute ( $request, $settings ); // Ödeme sorgulama servisi başlatılması için gerekli servis çağırısını temsil eder.
$output = Helper::formattoXMLOutput ( $response ); //Ödeme sorgulama servisi istek çağrısı sonucunda servis çıktı parametrelerinin ekranda gösterildiği kısımdır.
print "<h3>Sonuç:</h3>";
echo "<pre>";
echo htmlspecialchars ( $output );
echo "</pre>";
?>
<?php endif; ?>
<?php include('footer.php');?>