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

How do account upgrades work?

Discussion in 'Troubleshooting and Problems' started by Jaxel, Jan 2, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    Okay... so I created an account upgrade path for $20 yearly through paypal...

    I just had the first person purchase it. I received the payment on paypal and everything.

    However, when I look at the Active User Upgrades page in my adminCP, they are not there.

    Is something wrong?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I have tested manually upgrading a user and that works fine with the users appearing in the Active User Upgrades screen.

    I haven't tried doing it by purchasing an upgrade though.
     
  3. Jaxel

    Jaxel Well-Known Member

    Well looking in the adminCP, not only is the user upgrade not listed, but looking at that user's profile, they didn't receive the secondary usergroup join as they should have.

    This seems like a HUGE bug that needs to be fixed. We're working with real money here after all.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It may just be that a cron task needs to run?

    I'm not sure if that is the case though, I will need to check.
     
  5. Jaxel

    Jaxel Well-Known Member

    I looked through the cron tasks, a task in only required to revoke user upgrades, not create them initially.

    I'm looking through the database, and there is no record of the user upgrade at all.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    It's a shame zero cost upgrades can't be created as that would make it a lot easier for testing.

    I don't use PayPal.
     
  7. Jaxel

    Jaxel Well-Known Member

    Yeah, I can not get the user upgrade system working... I had a user try three times... He kept getting to the page:

    "Thank you for purchasing this upgrade.
    When the payment has been approved, your account will be upgraded."

    Payment has already been approved on paypal. Yet they never got the upgrade.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Do you want me to move this to bug reports?
     
  9. Jaxel

    Jaxel Well-Known Member

    No... I fixed it...

    I had to go into my Paypal Profile settings and explicitly set my IPN callback to: <domain>/payment_callback.php

    Its odd though, I don't ever remember having to do this with vBulletin. As well, this sounds problematic, because what if I have multiple forums, all paying to the same account; it seems to only be able to send the callback to a single domain.
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Make sure your board URL is correct as that is used to build the callback URL:

    Admin CP -> Home -> Options -> Basic Board Information -> Board URL
     
  11. Jaxel

    Jaxel Well-Known Member

    It is.
     
  12. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    With no ending slash, right? For example, the Board URL setting for this site is:

    http://xenforo.com/community
     
  13. Brogan

    Brogan XenForo Moderator Staff Member

  14. Mike

    Mike XenForo Developer Staff Member

    The callback is required, but we tell PP to use it in the request - I don't see why it would need to be configured in PP as well.
     
  15. Jaxel

    Jaxel Well-Known Member

    Well what happened is my IPN callback setting was DISABLED... which means it wasn't accepting ANYTHING.

    I had to re-enable the IPN callback in PP, but it required a callback URL.
     
  16. Shadab

    Shadab Well-Known Member

    The callback url specified in your account doesn't matter,
    because the URL sent by xenforo will override the url specified in your account.

    http://tutorials.zen-cart.com/index.php?article=229
     
    Dean and Darkimmortal like this.
  17. Dean

    Dean Well-Known Member

    My IPN was also disabled in my paypal account, and the previous post are accurate.

    Another tidbit to keep in mind is that with the IPN needed, the forum needs to be publicly accessible. In my case I had the forum directory password protected because I did not want google archiving my test site, but others may have reasons for having non-publicly accessible forums with paid upgrades... such as an intranet. But I seriously doubt someone will encounter that often.

    To be clear - with my test site password protected, the IPN never came, and account upgrade was never confirmed nor took effect.
     
  18. Dean

    Dean Well-Known Member

    Other nuances, though I'm not sure they are worthy of a stand alone thread:
    1. I created a $1 for 1 day re-occurring upgrade, then purchased it using a 2nd paypal account
    2. Clicking the 'cancel' button on that resulted in re-direction to paypal with a 'invalid cancel button' message displayed.
    3. I manually canceled the re-occurring paypal subscription - but the cancel button was still listed in my account upgrades.
    4. The next day the cancel button was still there, with this message "Expires: 10 minutes ago" :) - which I would imagine will disappear when the cron runs.. I will edit when that is updated.
    EDIT: within 2 hours the "Expires: ____ ago" went away as I predicted.
     
  19. Ranger375

    Ranger375 Well-Known Member

    What did you set your IPN notification url to? Is that yourforum url?
     
  20. Brogan

    Brogan XenForo Moderator Staff Member

    Looks like he set it to this: <domain>/payment_callback.php
     
    Ranger375 likes this.

Share This Page