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

Set post category automatically after Paypal payment?

Discussion in 'Blogging' started by Traste, Nov 1, 2012.

  1. Traste

    Traste Regular Member

    Joined:
    Dec 18, 2011
    Messages:
    304
    Likes Received:
    22
    Hi,

    This is what I'm trying to achieve (in Wordpress):

    1. User creates a post
    2. Post is assigned to "regular" category
    3. User pays through a Paypal button
    4. Once the payment is confirmed, Paypal redirects the users to the site and the post is assigned to "premium" category

    Any way to do this? I've been taking a look at WP-Member, but can't figure out whether this is doable.

    Thanks
     
  2. kaloyan14

    kaloyan14 Regular Member

    Joined:
    Dec 12, 2011
    Messages:
    284
    Likes Received:
    65
    Occupation:
    webmaster, blogger
    Location:
    Eastern Europe
    I think that you try to code classified ads with vip offers section. :) It is very hard to do it with wp.
     
  3. Traste

    Traste Regular Member

    Joined:
    Dec 18, 2011
    Messages:
    304
    Likes Received:
    22
    That's actually what I'm trying to do, but I guess you're right. I was hoping to custom code the plugin to make it set the category as Paypal sends the return "sign" to the database :-/
     
  4. Traste

    Traste Regular Member

    Joined:
    Dec 18, 2011
    Messages:
    304
    Likes Received:
    22
    I'm thinking of a workaround. According to WP-Members documentation, you can hide a category for an user until he pays through Paypal. My workaround would be limiting the user to set only one post per category (this specific category).

    So, once the user pays, he could pick the "premium" category and set his post, only one post. Doable?

    Thanks
     
  5. kaloyan14

    kaloyan14 Regular Member

    Joined:
    Dec 12, 2011
    Messages:
    284
    Likes Received:
    65
    Occupation:
    webmaster, blogger
    Location:
    Eastern Europe
    Good luck! :)
     
  6. Traste

    Traste Regular Member

    Joined:
    Dec 18, 2011
    Messages:
    304
    Likes Received:
    22
    Just in case someone is interested, this can be done using Gravity Foms and the GF Paypal extension. Piece of cake :)