[guadec-web] Changes to IPN: trial 4
- From: Saumya Dwivedi <saumyad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] Changes to IPN: trial 4
- Date: Mon, 7 Jul 2014 12:02:57 +0000 (UTC)
commit ded43814c8c82ec729701d61a8c983c77ab9fdf2
Author: Saumya Dwivedi <saumya zero gmail com>
Date: Mon Jul 7 17:32:44 2014 +0530
Changes to IPN: trial 4
guadec/confirm-payment.php | 2 +-
guadec/ipn.php | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/guadec/confirm-payment.php b/guadec/confirm-payment.php
index 58ef716..3450e4f 100644
--- a/guadec/confirm-payment.php
+++ b/guadec/confirm-payment.php
@@ -197,7 +197,7 @@ if (!empty($_POST)) {
<input type="hidden" name="custom" value="<?php echo $registerInfo; ?>">
<!-- <Address of notification url. Can not be localhost -->
- <input type="hidden" name="notify_url"
value="http://www.guadec.org/wp-content/themes/guadec/ipn.php">
+ <input type="hidden" name="notify_url"
value="https://www.guadec.org/wp-content/themes/guadec/ipn.php">
<!-- Redirect to thank you after cancelled payment -->
<input type="hidden" name="cancel_return"
value="https://www.guadec.org/cancel-registration/">
diff --git a/guadec/ipn.php b/guadec/ipn.php
index 74e252b..e583f3d 100755
--- a/guadec/ipn.php
+++ b/guadec/ipn.php
@@ -23,6 +23,8 @@ $listener->use_sandbox = true;
try {
$listener->requirePostMethod();
$verified = $listener->processIpn();
+
+ error_log("atleast in try block");
} catch (Exception $e) {
error_log($e->getMessage());
exit(0);
@@ -32,7 +34,8 @@ try {
if ($verified) {
// : Implement additional fraud checks and MySQL storage
-
+ error_log("verified!\n");
+
$errmsg = ''; // stores errors from fraud checks
$customInfo = $_POST['custom']; // access custom information
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]