thank you page

Discussion in 'Payments processing' started by tradermike1999, May 15, 2008.

  1. tradermike1999

    tradermike1999 New Member

    Joined:
    Jul 3, 2007
    Messages:
    3
    I'm using paypal for a subscription product with amember. Been using it
    for several years now and both work well together. One simple question
    though - how can I direct someone to a thankyou page after they sign
    up through paypal using amember. I don't see this option anywhere and think maybe I'm missing it our for some reason you can't do it with paypal and amember?
  2. tomfra

    tomfra Member

    Joined:
    Dec 21, 2006
    Messages:
    199
    In the PayPal account profile there is an option called "Auto Return" under "Website Payment Preferences" (PayPal account home -> Profile -> Website Payment Preferences). Set it to "On" and enter the return URL there as well.

    Technically, it doesn't matter what you set as the return URL because it will be overridden by the return_url variable sent from the aMember script but it has to meet the PayPal requirements which are described in that section as well. You will probably have to add some wording to the thanks.html template.

    Tomas
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Does "auto return" actually automatically return or does it just enable the optional "return to merchant" button?
  4. tradermike1999

    tradermike1999 New Member

    Joined:
    Jul 3, 2007
    Messages:
    3
    Where do you set the return_url variable in the amember script?

    If I understand correcthly then you see the paypal url autoreturn to on - I've found it - but only has one url link - I have multiple products so would prefer to be able to have more than one url. - I might be able to do this by finding this return_url variable in amember. Where is that located?

    Thanks again for your help!
  5. tomfra

    tomfra Member

    Joined:
    Dec 21, 2006
    Messages:
    199
    The return_url is preset to http://www.yourdomain.com/amember/thanks.php?payment_id=[PAYMENT_ID] - the payment_id is unique for each invoice and the thanks.php page displays the unique transaction details.

    But if you want to have the user redirected to a completely different URL, you will have to hack the code a little bit. Some PHP coding skills will be necessary though (although it should be relatively simple).

    Tomas

Share This Page