1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Paypal processor is not extendable

Discussion in 'Resolved Bug Reports' started by Xon, Apr 26, 2016.

  1. Xon

    Xon Well-Known Member

    In payment_callback.php, XenForo_UserUpgradeProcessor_PayPal is directly created rather than going through the XenForo_Application::resolveDynamicClass or using a trampoline method like CssOutput::run()

    This is required if you want to change how the paypal processor reacts to events, without using webserver redirection trips to a new copy of payment_callback.php.
    Sadik B likes this.
  2. Sadik B

    Sadik B Well-Known Member

    Yes this is a terrible PITA if you want to do anything with paypal. Technically this is not really a bug but how they chose to implement this. I just created a new payment_callback_custom.php copying most of the code from payment_callback and adding my own methods and using this new file as the IPN endpoint.
  3. Mike

    Mike XenForo Developer Staff Member

    This is a reasonable change to make. This code predates the generic class extension stuff (as originally it was type specific).
    Sadik B, Snog and Xon like this.

Share This Page