Callback Script Help!!!

Discussion in 'Programming' started by ju2ltd, May 9, 2006.

  1. #1
    I am working on a retail site built using Actinic v6 and using SECPay as the payment service provider. I want to change the page that customers see when they successfully complete a transaction.

    At present they go to a callback page called http://secpay.com/java-bin/valcard but I want to send them to a page ...../Act_SECPayOK.html which I have atgged for analytics.

    We've followed the advice from Actinic support who suggest the following:

    Callbacks are created in the PSP script templates. In this case in {SiteDir}CommonOCC\OCCSecPayScriptTemplate.pl



    Here is the part which creates it:

    #

    # the receipt page is called indirectly via the static html page

    #

    $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"RECEIPTURL\" VALUE=\"" .

    PrepareSecPayURLCallback($::sCallBackURLUser) . "\">\n";

    #

    # build the link to the transaction confirmation page

    #

    $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"CALLBACKURLUSER\" VALUE=\""

    .

    $::sContentUrl . "Act_SECPayOK.html" . "\">\n";

    We've made this change but customers are still sent back to SECPay - any ideas? Unfortunately this problem sits outside the scope of Actinics support but I can't believe that i am the first person to want to track conversions on one of thier sites.
     
    ju2ltd, May 9, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I use secpay. The callback page is loaded into the secpay payment page so I just 301 redirect to another callback page.

    cart > secpay > callback1 > callback confirm

    callback 1 is a script that determines if the transaction is OK or not, updates the DB and then redirects accordingly.
     
    mad4, May 9, 2006 IP
  3. ju2ltd

    ju2ltd Peon

    Messages:
    100
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks - you couldn't recommend somebody to sort this for me? We don't have a lot of budget but I think it would be money well spent?
     
    ju2ltd, May 9, 2006 IP