Permalink
Browse files

paypal MDL-20322 Make sure the currency is set correctly.

  • Loading branch information...
1 parent 7155129 commit 53aa452558e6354c91a6bc1a459bc27b5d943c22 moodler committed Sep 22, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 enrol/paypal/ipn.php
View
@@ -98,6 +98,13 @@
die;
}
+ // If currency is incorrectly set then someone maybe trying to cheat the system
+
+ if ($data->mc_currency != $course->currency) {
+ email_paypal_error_to_admin("Currency does not match course settings, received: ".addslashes($data->mc_currency), $data);
+ die;
+ }
+
// If status is pending and reason is other than echeck then we are on hold until further notice
// Email user to let them know. Email admin.

0 comments on commit 53aa452

Please sign in to comment.