If you change that line 62 (path given in the notice) from
Code: Select all
if (!($customer instanceof customer) || ($customer_id != $customer->get_id())) {
to either
Code: Select all
if (!(($customer ?? null) instanceof customer) || ($customer_id != $customer->get_id())) {
or
Code: Select all
if (!isset($customer) || !($customer instanceof customer) || ($customer_id != $customer->get_id())) {
That notice would go away. That notice is pretty harmless anyway, but a PHP update might change it to a warning or fatal.
For the other one, you could suppress the notice by changing line 616 to
Code: Select all
. 'Pending Reason: ' . htmlspecialchars($pptx_params['pending_reason'] ?? '');
I.e. add ?? '' to it. It's not clear to me if that is a real problem or PayPal just doesn't always send that. Presumably BrockleyJohn's version won't have that problem.