is thanks.php necessary?

Discussion in 'Payments processing' started by menspsy, Dec 22, 2010.

  1. menspsy

    menspsy New Member

    Joined:
    Aug 4, 2010
    Messages:
    24
    We use 1ShoppingCart to process payments.
    After a membership is purchased in Amember and payment made through 1SC, is it necessary to use as a thank you page the /amember/thanks.php or can I use my custom page?

    I am asking if this page is necessary to finish the sign-up process or if it is merely for displaying the receipt.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    No this is not necessary to use that page.
    Payment will be activated by hidden post from 1SC.
  3. drmartinjr3i3

    drmartinjr3i3 aMember Pro Customer

    Joined:
    Nov 21, 2010
    Messages:
    65
    just to confirm?

    so it does not matter what the thank you page is - it should still give correct feedback from 1sc to amember?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes, correct.
  5. 6130445

    6130445 New Member

    Joined:
    Nov 10, 2010
    Messages:
    12
    Is this the same for Paypal?
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    As long as the IPN is working properly.

    David
  7. 6130445

    6130445 New Member

    Joined:
    Nov 10, 2010
    Messages:
    12
    ok, thanks,

    How do I change the Thank you page after Paypal payment?

    And, how do I change the thank you page after a free signup that does not even involve Paypal?

    (I'm not talking about template mods here, but redirecting to an actual file)

    thanks
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can modify thanks.php and place actual redirects here.
    Instead of
    PHP:
    $t->display("thanks.html");
    Just place this code:
    PHP:
    switch($pm[paysys_id]){
      case 
    "free" $url '/url/for/free/signup'; break; 
      case 
    "paypal_r" $url '/url/for/paypal/signup'; break; 
      default : 
    $url '/other';
    }
    header("Location: $url");

Share This Page