-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathLinkPaymentDelete.php
More file actions
42 lines (32 loc) · 1.18 KB
/
LinkPaymentDelete.php
File metadata and controls
42 lines (32 loc) · 1.18 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
<?php include('menu.php');?>
<form action="" method="post" class="form-horizontal">
<fieldset>
<!-- Form Name -->
<legend>Link İle Ödeme (Link Silme)</legend>
<div class="form-group">
<label class="col-md-4 control-label" for="">Ödeme Linki ID : </label>
<div class="col-md-4">
<input value="<?php echo isset($_POST['linkId']) ? $_POST['linkId'] : ''; ?>" name="linkId" class="form-control input-md">
</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">Ödeme Linkini Sil</button>
</div>
</div>
</fieldset>
</form>
<?php
if (!empty($_POST)) {
$settings = new Settings();
$linkPaymentRequest = new LinkPaymentDeleteRequest($_POST['linkId']);
$response = $linkPaymentRequest->execute($settings);
$output = Helper::formattoJSONOutput($response);
print "<h3>Sonuç:</h3>";
echo "<pre>";
echo htmlspecialchars($output);
echo "</pre>";
}
include('footer.php');