PayPal callback no longer requires a business account
authorMarcel Werk <burntime@woltlab.com>
Sat, 24 Nov 2018 16:51:33 +0000 (17:51 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sat, 24 Nov 2018 16:51:33 +0000 (17:51 +0100)
wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php

index 0fb8bd6442da273bad83ea55347a43f5ffe11423..ad60abe63b44d32341de7e05548d74a2f80f51a9 100644 (file)
@@ -55,8 +55,8 @@ class PaypalCallbackAction extends AbstractAction {
                        }
                        
                        // Check that receiver_email is your Primary PayPal email
-                       if (strtolower($_POST['business']) != strtolower(PAYPAL_EMAIL_ADDRESS) && (strtolower($_POST['receiver_email']) != strtolower(PAYPAL_EMAIL_ADDRESS))) {
-                               throw new SystemException('invalid business or receiver_email');
+                       if (strtolower($_POST['receiver_email']) != strtolower(PAYPAL_EMAIL_ADDRESS)) {
+                               throw new SystemException('invalid receiver_email');
                        }
                        
                        // get token