[guadec-web] Adding stricter checks to amount paid
- From: Saumya Dwivedi <saumyad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] Adding stricter checks to amount paid
- Date: Wed, 9 Jul 2014 09:54:27 +0000 (UTC)
commit 4dac9f8cc995c40366cae1b003cf12388b44233e
Author: Saumya Dwivedi <saumya zero gmail com>
Date: Wed Jul 9 15:24:14 2014 +0530
Adding stricter checks to amount paid
guadec/ipn.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/guadec/ipn.php b/guadec/ipn.php
index c9d6c12..3e59295 100755
--- a/guadec/ipn.php
+++ b/guadec/ipn.php
@@ -63,7 +63,8 @@ if ($verified) {
}
// 3. Make sure the amount(s) paid match
- if ($_POST['mc_gross'] <= '0.0') {
+ $total_fee = floatval($cvar['totalfee']);
+ if ($_POST['mc_gross'] <= $total_fee) {
$errmsg .= "'mc_gross' does not match: ";
$errmsg .= $_POST['mc_gross']."\n";
}
@@ -80,7 +81,7 @@ if ($verified) {
$errmsg .= "No Valid user email-address found\n";
}
if (!empty($errmsg)) {
- $status = "Fraud-check";
+ $status = "FraudCheck";
$upipn = $listener->updateCompleted($reg_email,$status);
error_log($upipn);
// manually investigate errors from the fraud checking
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]