[guadec-web] Testing database update: Trial 2



commit 8a22b372e73048482868f1ae8ea172703543fc12
Author: Saumya Dwivedi <saumya zero gmail com>
Date:   Tue Jul 8 15:02:04 2014 +0530

    Testing database update: Trial 2

 guadec/ipn.php |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/guadec/ipn.php b/guadec/ipn.php
index ae71e51..6c6f94d 100755
--- a/guadec/ipn.php
+++ b/guadec/ipn.php
@@ -82,9 +82,11 @@ if ($verified) {
     // TODO: Check for duplicate user_id
     
     if (!empty($errmsg)) {
-    
+        $reg_email = $cvar['email'];
+        $body = $listener->updateCompleted($reg_email);
+       
         // manually investigate errors from the fraud checking
-        $body = "Registration Payment Successful-with fraud warning ";
+        $body .= "Registration Payment Successful-with fraud warning ";
         $body .= "IPN failed fraud checks: \n$errmsg\n\n";
 
         //append with the real payment details
@@ -102,7 +104,7 @@ if ($verified) {
         var_dump($wpdb);
         $table_name = $wpdb->prefix .'guadec2014_registration';
         error_log($table_name);     // check if the wpdb is accessible
-        $listener->updateCompleted($reg_email);
+        $body = $listener->updateCompleted($reg_email);
         // $wpdb->update(
         // $table_name,
         // array(
@@ -112,7 +114,7 @@ if ($verified) {
         //     'email' => $reg_email
         //     ) 
         // );
-        $body = "Registration Payment Successful for ";
+        $body .= "Registration Payment Successful for ";
         $body .= $cvar['name'];
         $body .= " with email ";
         $body .= $cvar['email'];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]