diff --git a/LICENSE b/LICENSE
old mode 100755
new mode 100644
diff --git a/examples/3ds_redirect.php b/examples/3ds_redirect.php
old mode 100755
new mode 100644
index 0dce10d..1440b29
--- a/examples/3ds_redirect.php
+++ b/examples/3ds_redirect.php
@@ -2,7 +2,7 @@
disableSSLCheck(true);
+include('header.php');
+
try {
$response = $worldpay->authorise3DSOrder($_SESSION['orderCode'], $_POST['PaRes']);
@@ -21,11 +23,13 @@
} else {
echo 'There was a problem authorising 3DS order
';
}
-} catch (WorldpayException $e) { // PHP 5.2 - Change to Exception, only $e->getMessage() is available
+} catch (WorldpayException $e) { // PHP 5.3+
// Worldpay has thrown an exception
echo 'Error code: ' . $e->getCustomCode() . '
HTTP status code:' . $e->getHttpStatusCode() . '
Error description: ' . $e->getDescription() . '
Error message: ' . $e->getMessage() . '
' .
'PaRes: ' . print_r($_POST, true) . '
';
+} catch (Exception $e) { // PHP 5.2
+ echo 'Error message: '. $e->getMessage();
}
diff --git a/examples/cancel_authorised_form.php b/examples/cancel_authorised_form.php
new file mode 100644
index 0000000..48312f5
--- /dev/null
+++ b/examples/cancel_authorised_form.php
@@ -0,0 +1,17 @@
+
+