Repository navigation
Expand file tree
/
Copy pathHPMCallback.php
More file actions
executable file
·55 lines (50 loc) · 2.22 KB
/
Copy pathHPMCallback.php
File metadata and controls
executable file
·55 lines (50 loc) · 2.22 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
<link href="css/structure.css" rel="stylesheet" type="text/css"/>
<script>
function callback() {
<?
if ($_REQUEST['success'] != NULL && $_REQUEST['success'] == 'true') {
?>
parent.hostedpagecallback_success('<?php echo $_REQUEST['refId']; ?>');
<?
} else if ($_REQUEST['success']==NULL || $_REQUEST['success'] == 'false'){
$errorCode = isset($_REQUEST['errorCode']) ? $_REQUEST['errorCode'] : '';
$errorMessage = isset($_REQUEST['errorMessage']) ? $_REQUEST['errorMessage'] : '';
$errorField_creditCardType = isset($_REQUEST['errorField_creditCardType']) ? $_REQUEST['errorField_creditCardType'] : '';
$errorField_creditCardNumber = isset($_REQUEST['errorField_creditCardNumber']) ? $_REQUEST['errorField_creditCardNumber'] : '';
$errorField_creditCardExpirationMonth = isset($_REQUEST['errorField_creditCardExpirationMonth']) ? $_REQUEST['errorField_creditCardExpirationMonth'] : '';
$errorField_creditCardExpirationYear = isset($_REQUEST['errorField_creditCardExpirationYear']) ? $_REQUEST['errorField_creditCardExpirationYear'] : '';
$errorField_cardSecurityCode = isset($_REQUEST['errorField_cardSecurityCode']) ? $_REQUEST['errorField_cardSecurityCode'] : '';
$errorField_creditCardHolderName = isset($_REQUEST['errorField_creditCardHolderName']) ? $_REQUEST['errorField_creditCardHolderName'] : '';
?>
parent.hostedpagecallback_failure(
'<?php echo $errorCode; ?>',
'<?php echo $errorMessage; ?>',
'<?php echo $errorField_creditCardType; ?>',
'<?php echo $errorField_creditCardNumber; ?>',
'<?php echo $errorField_creditCardExpirationMonth; ?>',
'<?php echo $errorField_creditCardExpirationYear; ?>',
'<?php echo $errorField_cardSecurityCode; ?>',
'<?php echo $errorField_creditCardHolderName; ?>');
<?
}
?>
}
</script><body onload="callback();"/>
<div align="center">
<br/><br/><br/>
<?php
if(!isset($_REQUEST['success']) || $_REQUEST['success']=='false'){
echo "
<div class='error_message'>
There was an error while processing your card.
You will be redirected shortly.
</div>";
} else {
echo "
<div class='success_message'>
Credit Card validated.
You will be redirected shortly.
</div>";
}
?>
</div>