-
Notifications
You must be signed in to change notification settings - Fork 1
/
response.php
55 lines (29 loc) · 909 Bytes
/
response.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
.<?php
require("nusoap.php");
$test_env = true;
if ($test_env) {
$wsdl = "https://testecomm.sella.it/gestpay/gestpayws/WSCryptDecrypt.asmx?WSDL"; //TESTCODES
} else {
$wsdl = "https://ecomms2s.sella.it/gestpay/gestpayws/WSCryptDecrypt.asmx?WSDL"; //PRODUCTION
}
$client = new nusoap_client($wsdl,true);
$shopLogin = $_GET["a"];
$CryptedString = $_GET["b"];
echo '<p><strong>Shop Login:</strong> '. $shopLogin . '</p>';
echo '<p><strong>Crypted String:</strong> '. $CryptedString . '<p/>';
$params = array('shopLogin' => $shopLogin, 'CryptedString' => $CryptedString);
$objectresult = $client->call('Decrypt',$params);
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
}
else {
// Display the result
echo '<h2></h2>';
echo '<h2>Result</h2>';
echo '<pre>';
print_r ($objectresult);
echo '</pre>';
}
?>