Include PayPal business email in exception
authorSir-Will <brieftaubenman@gmail.com>
Tue, 28 Jul 2020 17:09:30 +0000 (19:09 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 17:09:30 +0000 (19:09 +0200)
wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php

index af1330728eae9418d217c254333b73699c6ed114..a6868031e32c1b0d22db8b2355874d2624d7d998 100644 (file)
@@ -56,7 +56,7 @@ class PaypalCallbackAction extends AbstractAction {
                        
                        // Check that receiver_email is your Primary PayPal email
                        if (strtolower($_POST['receiver_email']) != strtolower(PAYPAL_EMAIL_ADDRESS) && strtolower($_POST['business']) != strtolower(PAYPAL_EMAIL_ADDRESS)) {
-                               throw new SystemException("Mismatching receiver_email and business '" . $_POST['receiver_email'] . "', expected '".PAYPAL_EMAIL_ADDRESS."'.");
+                               throw new SystemException("Mismatching receiver_email ('" . $_POST['receiver_email'] . "') and business ('" . $_POST['business'] . "'), expected '".PAYPAL_EMAIL_ADDRESS."'.");
                        }
                        
                        // get token