Trying to emulate this process

Discussion in 'Customization & add-ons' started by fertilepress, May 7, 2009.

  1. fertilepress

    fertilepress Member

    Joined:
    Dec 6, 2008
    Messages:
    96
    I would like to handle payment and access to protected areas the way it is done at this site.

    I can accomplish the first part of having the customer self-identify as registered or unregistered and base the "Buy now" link on the response. No problem.

    I've been able to get things to work perfectly for registered users who signin before choosing to "buy." If they're already logged in when they choose "buy", they're automatically forwarded to Paypal and aMember takes care of the rest.

    However, it's the signup and login part I can't get working. After choosing "buy" for non-registered users or users who are not already logged in, they are taken to either the signup or login page for that specific product (using the aMember link extensions). However, after the signup or login is complete, instead of going to Paypal, they are routed to the member.php page and asked to select the product again and click the order button. I want to bypass that last step with the member page.

    Any idea how to accomplish this? I've asked the site's owner, another aMember user, how to do this but I haven't gotten a reply yet. Thought I'd pop the question in here, too.

    Thanks!

    renee
  2. powerkeys

    powerkeys Member

    Joined:
    Aug 29, 2006
    Messages:
    192
    It seems the difficulty here is that you're trying to do the login and purchase steps as a single step.

    The only thing I can think of that may help would be to 'extend' the link extensions you mentioned and use the amember_redirect_url variable as such:

    Code:
    http://yoursite.com/amember/login.php?amember_redirect_url=http://yoursite.com/amember/member.php?action=renew&productid=xx&paysys_id=paypal_r
    I'm sure something may need to be encoded differently (perhaps as POST variables rather than GET) to get the combination to work, but this is the general idea.
  3. fertilepress

    fertilepress Member

    Joined:
    Dec 6, 2008
    Messages:
    96
    Thanks for the tip. I'll try extending the link extensions as you suggested. I'm not a coder, so if there's any PHP that has to be written, I'm out of luck.

    renee

Share This Page