Fixed Undefined index: legacy

Affected version
2.0 Beta 6


Well-known member
I don't know if this is a bug or not, so feel free to move this thread if it's not.

I'm testing IPNs from the PayPal sandbox and I keep getting this server error:

[*]ErrorException: [E_NOTICE] Undefined index: legacy
[*]Generated by: Unknown account
[*]Oct 12, 2017 at 3:23 PM
Stack trace
#0 src/XF/Payment/PayPal.php(230): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/client...', 230, Array)
#1 payment_callback.php(46): XF\Payment\PayPal->validatePaymentProfile(Object(XF\Payment\CallbackState))
#2 {main}