Index: branches/5.3.x/units/gateways/gw_classes/paypal_direct.php =================================================================== diff -u -N -r15671 -r15695 --- branches/5.3.x/units/gateways/gw_classes/paypal_direct.php (.../paypal_direct.php) (revision 15671) +++ branches/5.3.x/units/gateways/gw_classes/paypal_direct.php (.../paypal_direct.php) (revision 15695) @@ -1,6 +1,6 @@ Conn->GetOne(' SELECT Email FROM '.$this->Application->getUnitOption('u', 'TableName').' - WHERE PortalUserId = '.$this->Application->RecallVar('user_id')); + $billing_email = $this->_getUserEmail(); } $post_fields['x_email'] = $billing_email; $post_fields['x_phone'] = $item_data['BillingPhone'];