Fixed UserUpgrade reversing payments from XF1

BobbyUgh

Member
Affected version
2.0.4
Sorry about the non descriptive title as i wasn't sure how to word it.

We recently upgraded to XF2 and we received a few payment adjustments from the paypal IPN (refund, chargeback etc), this is throwing a warning in the server logs.

#0 src/XF/Purchasable/UserUpgrade.php(197): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/www/site...', 197, Array) #1 src/XF/Payment/AbstractProvider.php(177): XF\Purchasable\UserUpgrade->reversePurchase(Object(XF\Payment\CallbackState)) #2 payment_callback.php(62): XF\Payment\AbstractProvider->completeTransaction(Object(XF\Payment\CallbackState)) #3 {main}

Obviously due to privacy reasons i can't post the request state here as it has personal information, i can however provide it in PM if needed.

Looks to me like it is unable to find the active upgrade as the format changed in XF2, for now we are just clearing the error and downgrading the users manually.
 
Top Bottom