Skip to content

Commit

Permalink
paypal MDL-20322 Make sure the currency is set correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 22, 2009
1 parent a55516b commit 4cb3586
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions enrol/paypal/ipn.php
Expand Up @@ -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.

Expand Down

0 comments on commit 4cb3586

Please sign in to comment.