Announcement

Collapse
No announcement yet.

Getting Actinic to transfer to SPECIFIC Securetrading payment page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting Actinic to transfer to SPECIFIC Securetrading payment page

    Hi

    If I have two websites using the same PSP, ID, and merchant no. etc but they have very different name and look and feel I'll need to make 2 sets of payment pages.

    My psp is Secure Trading, I asked them about this and it isn't a problem, part of their reply was:
    "If you were using the same SecureTrading site for two websites, you would need to use the "formref" variable. This is a variable that is passed from the "order page" which will define which set of form pages to use. E.G: the first site could be formref=1, and this would use form1.html, customeremail1.html, success1.html etc, and the second site could be formref=2, which would use form2.html, customeremail2.html etc."

    But Actinic only seems to want to go to the default form.html

    I can't find the URL for securetrading.net/form.cgi or whatever the link is anywhere in the ST templates in Actinic folder

    #2
    Hi there

    Im finding out from the develoment team if this can be done for Secure Trading.

    Comment


      #3
      I would hazard a guess that it would be an edit to the OCCSecureTradingScriptTemplate.pl found in the CommonOCC folder.

      For example: (NOT TESTED!)

      Where you find the following lines:

      Code:
      AddPostValues ('&', 'CALLBACKURLAUTH', $::sCallBackURLAuth, $ALWAYS, $REDIRECT);
      AddPostValues ('&', 'CALLBACKURLBACK', $::sCallBackURLBack, $ALWAYS, $REDIRECT);
      AddPostValues ('&', 'CALLBACKURLUSER', $::sCallBackURLUser, $ALWAYS, $REDIRECT);
      you could add the following

      Code:
      AddPostValues ('&', 'formref', '1', $ALWAYS, $NOENCODE);
      or
      Code:
      AddPostValues ('&', 'formref', '2', $ALWAYS, $NOENCODE);
      depending on which site it was for.

      In theory this would add another variable/value pairing which is posted to the Secure Trading website.

      Please wait for an official response from James at Actinic before making any changes.
      The above is just hypothetical and not tested!
      Fergus Weir - teclan ltd
      Ecommerce Digital Marketing

      SellerDeck Responsive Web Design

      SellerDeck Hosting
      SellerDeck Digital Marketing

      Comment


        #4
        I looked into this some time ago, and made the following notes - these apply to V7, and I don't know where they came from now. These are also UNTESTED.

        In form2.html (this is the second ST payment page), need to add:

        <INPUT TYPE=”HIDDEN” NAME=”formref” VALUE=”$formref”>

        to the list of hidden fields.


        Also:

        Need to add the following code in site's Secure Trading bounce page PERL file to make it choose form2.html when it goes to ST:

        1 - Go to 'C:\Program Files\Actinic v7\Sites\Site1\CommonOCC' and edit 'OCCSecureTradingScriptTemplate.pl' in Notepad.

        2 - Find a line that says:
        AddPostValues ('&', 'CARTID', $sCartID, $ALWAYS, $NOENCODE);

        3 - Add a new line below:
        AddPostValues ('&', 'formref', '2', $ALWAYS, $NOENCODE);

        Aquazuro - designer stainless steel accessories

        Comment


          #5
          Originally posted by Mark H
          In form2.html (this is the second ST payment page), need to add:

          <INPUT TYPE=”HIDDEN” NAME=”formref” VALUE=”$formref”>

          Good catch Mark. I neglected the ST HTML Form page edit!
          Fergus Weir - teclan ltd
          Ecommerce Digital Marketing

          SellerDeck Responsive Web Design

          SellerDeck Hosting
          SellerDeck Digital Marketing

          Comment


            #6
            No - you did well - I can't claim any brownie points as this code originally came from someone else. I presume you would need to put the same code in form1.html as well.

            Aquazuro - designer stainless steel accessories

            Comment


              #7
              Hi there

              You will need to edit 'OCCSecureTradingScriptTemplate.pl'.

              Here find a line that says:

              --------------------------------8<-------------------------------
              AddPostValues ('&', 'CARTID', $sCartID, $ALWAYS, $NOENCODE);
              --------------------------------8<-------------------------------

              Here add a new line and put in:
              --------------------------------8<-------------------------------
              AddPostValues ('&', 'formref', '2', $ALWAYS, $NOENCODE);
              --------------------------------8<-------------------------------
              Save the changes and exit.

              Hope that helps.

              Comment


                #8
                Oooh - "Snap", James!

                For the record, is there a specific reason for the line appearing immediately after
                the 'CARTID' line, or would the order not matter (as in my example above) ?
                Fergus Weir - teclan ltd
                Ecommerce Digital Marketing

                SellerDeck Responsive Web Design

                SellerDeck Hosting
                SellerDeck Digital Marketing

                Comment


                  #9
                  Which is the best payment gateway?

                  Hi

                  I too am looking for the best payment gateway. Please be very keen to hear anyone's experiences (good and bad) for the following:

                  - worldpay
                  - protx
                  - secure trading

                  Would also be interested if anyone can recommend a good back for an internet merchange account.

                  Many thanks

                  P

                  Comment


                    #10
                    This might help:

                    http://community.actinic.com/showthr...=securetrading

                    Aquazuro - designer stainless steel accessories

                    Comment


                      #11
                      formref secure trading

                      Thanks Mark

                      this as helped me get multiple actinic sites using the same gateway working.

                      I am not sure the following is needed though, the hidden field is used to open form2.html so once that page is opened this reference isn't needed.

                      [QUOTE=Mark H;190108]

                      In form2.html (this is the second ST payment page), need to add:

                      <INPUT TYPE=”HIDDEN” NAME=”formref” VALUE=”$formref”>

                      to the list of hidden fields.




                      Thanks again
                      Paul Hesford
                      Web Design Wigan

                      Based in the Northwest of England UK, provides web design, programming, e-commerce and web hosting services

                      Cheap Whey Protein from Powerbeck
                      Web Designer in Wigan
                      Actinic Hosting
                      Dog Kennels and Runs

                      Comment

                      Working...
                      X