ipn receiver for external api
authorLisa Marie Maginnis <lisam@fsf.org>
Mon, 21 Sep 2015 17:33:03 +0000 (13:33 -0400)
committerMichael McMahon <michael@fsf.org>
Thu, 20 Aug 2020 14:00:13 +0000 (10:00 -0400)
extern/tcIPN.php [new file with mode: 0644]

diff --git a/extern/tcIPN.php b/extern/tcIPN.php
new file mode 100644 (file)
index 0000000..66b1ef7
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+/*
+ * PxPay Functionality Copyright (C) 2008 Lucas Baker,
+ *   Logistic Information Systems Limited (Logis)
+ * PxAccess Functionality Copyright (C) 2008 Eileen McNaughton
+ * Licensed to CiviCRM under the Academic Free License version 3.0.
+ *
+ * Grateful acknowledgements go to Donald Lobo for invaluable assistance
+ * in creating this payment processor module
+ */
+
+
+session_start();
+
+require_once '../civicrm.config.php';
+require_once 'CRM/Core/Config.php';
+
+$config = CRM_Core_Config::singleton();
+if (md5($_GET['key']) == md5('meh')) {
+   require_once '../CRM/Core/Payment/trustcommerceIPN.php';
+   $ipn = new CRM_Core_Payment_trustcommerce_IPN;
+   $ipn->main();
+}
+exit;