Announcement

Collapse
No announcement yet.

How can I send userdefine info to my PSP

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

    How can I send userdefine info to my PSP

    I want to send a userdefined value to my PSP so when the accounts guys look at it they can see a bit of extra info.

    At present only the Customer Details and Total value are sent.

    I have a userdefined field which I can see in Actinic, Invoice & Packing list but I have to download this. I want the admin guys to see this value on the PSP website when they release/refund/change payment options.

    My PSP is SecPay.

    Any Ideas?

    Chas
    Take only Photo's
    Leave only Footprints

    #2
    Chas,

    Straight off I would be tempted to say 'Not Possible' as only payment details are sent over to the PSP to process the order. I will however check this and get back to you.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Chas,

      You can do this by adding a bit of code to the Secpay script file. You will find this in C:\Program Files\Actinic v7\Sites\Site1\CommonOCC, the script is OCCSecpayScriptTemplate.pl

      Open in notepad

      Add in this line of code:

      $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"USERDEFINED\" VALUE=\"" .
      $::InvoiceContact{USERDEFINED} . "\">\n";

      Which means, this info will be sent to SecPay, but I don't know what the Secpay server will do with it. The rest will depend on where or how you see this in SecPay.

      Kind regards,
      Bruce King
      SellerDeck

      Comment


        #4
        Send Userdefined items to SecPay

        Originally posted by Bruce
        Chas,

        You can do this by adding a bit of code to the Secpay script file. You will find this in C:\Program Files\Actinic v7\Sites\Site1\CommonOCC, the script is OCCSecpayScriptTemplate.pl

        Open in notepad

        Add in this line of code:

        $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"USERDEFINED\" VALUE=\"" .
        $::InvoiceContact{USERDEFINED} . "\">\n";

        Which means, this info will be sent to SecPay, but I don't know what the Secpay server will do with it. The rest will depend on where or how you see this in SecPay.

        Kind regards,
        Hi Bruce,

        I found this line already in the SecPay template.

        Secpay allow sending data in the field name "order" and for each line you can have a different input.

        I Changed the name from USERDEFINED to "order" and SecPay do indeed print it on the list when you check for payments on their website so that works OK.

        copied from my template...
        #$sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"USERDEFINED\" VALUE=\"" . $::InvoiceContact{USERDEFINED} . "\">\n";

        # send the first User Defined value - Post the Order to me
        $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"order\" VALUE=\"" . $::InvoiceContact{USERDEFINED} . "\">\n";

        I then also wanted to send the Userdefined002 value I had created for the customer to enter comments. I worked out that this is the USERDEFINED in the General Phase and changed the line accordingly but it did not work, I guess I got the $:: part wrong, can you advise

        # attempt to send extra user entered details - comments
        $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"order\" VALUE=\"" . $::GeneralContact{USERDEFINED} . "\">\n";

        Cheers
        Chas
        Take only Photo's
        Leave only Footprints

        Comment


          #5
          Hi Chas
          Originally posted by Chas.Large
          # attempt to send extra user entered details - comments
          $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"order\" VALUE=\"" . $::GeneralContact{USERDEFINED} . "\">\n";
          Are you talking about in Order02, there is 3 General Prompt you can ask? If so then for the second one it would be

          Code:
          # attempt to send extra user entered details - comments
          $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"order\" VALUE=\"" . $::GeneralInfo{WHYBUY} . "\">\n";
          Try that please.

          Kind Regards
          Nadeem Rasool
          SellerDeck Development

          Comment


            #6
            Send info to SecPay

            Originally posted by Nadeem
            Hi Chas

            Are you talking about in Order02, there is 3 General Prompt you can ask? If so then for the second one it would be

            Code:
            # attempt to send extra user entered details - comments
            $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"order\" VALUE=\"" . $::GeneralInfo{WHYBUY} . "\">\n";
            Try that please.

            Kind Regards
            Hi Nadeem,

            Nearly there, in the DESIGN - TEXT - General Information, there are three Userdefineable values. 1 is the WhyBuy, 2 I have as a Checkbox and 3 I have as customer comments box. It is this last Userdefined data I want to include.

            I thought they were labelled Userdefined0, 1 and 2 but please correct me.

            How do I determine the actual label of the UD field?

            Chas
            Take only Photo's
            Leave only Footprints

            Comment


              #7
              Send Order Items on Secpay

              Originally posted by Nadeem
              Hi Chas

              Are you talking about in Order02, there is 3 General Prompt you can ask? If so then for the second one it would be

              Code:
              # attempt to send extra user entered details - comments
              $sHiddenValues .= "<INPUT TYPE=HIDDEN NAME=\"order\" VALUE=\"" . $::GeneralInfo{WHYBUY} . "\">\n";
              Try that please.

              Kind Regards
              Hi Again Nadeem,

              I just tested this line anyway and it does not work. I guess somehow the pl is not picking up the GeneralInfo{WHYBUY} info. Strange? when it works with the InvoiceContact{USERDEFINED} field.

              Any ideas?
              Take only Photo's
              Leave only Footprints

              Comment


                #8
                Chas,

                Since you have proved you can send ONE lot of data to Secpay and have it returned correctly, can you not concatenate the Actinic fileds you want into that one variable?
                Bill
                www.egyptianwonders.co.uk
                Text directoryWorldwide Actinic(TM) shops
                BC Ness Solutions Support services, custom software
                Registered Microsoft™ Partner (ISV)
                VoIP UK: 0131 208 0605
                Located: Alexandria, EGYPT

                Comment


                  #9
                  how can I send userdefined info

                  Originally posted by wjcampbe
                  Chas,

                  Since you have proved you can send ONE lot of data to Secpay and have it returned correctly, can you not concatenate the Actinic fileds you want into that one variable?

                  Hi Bill,
                  Welcome to the thread.
                  Yes I can indeed concactenate the data into one field and indeed that's what I intend to do. However, the field names are different in the .pl file to that of the HTML templates visible in actinic's program and I'm trying to identify their names in order to join them together.
                  As you'll gather from earlier posts, the $::InvoiceContact{USERDEFINED} works and the data can be sent to SecPay's "order" field but the $::GeneralInfo{WHYBUY} does not. I changed the single line to incorporate that field into the order field and although the actual HTML box held data it was not passed through so I guess the $::GeneralInfo is incorrect for the .pl file but with no definite list of how the Actinic fields relate to the .pl data I have to either guess or ask. I'm hoping Naseem or Bruce will come back to me with corrections as to the correct naming convention to use in the .pl

                  Of course if you know, then please do tell.

                  Cheers
                  Chas
                  Take only Photo's
                  Leave only Footprints

                  Comment


                    #10
                    I don't know, but looking at the code logically, all the invoice details are brought in by %::InvoiceContact, so I would expect $::InvoiceContact{WHYBUY} to be the correct call.
                    Bill
                    www.egyptianwonders.co.uk
                    Text directoryWorldwide Actinic(TM) shops
                    BC Ness Solutions Support services, custom software
                    Registered Microsoft™ Partner (ISV)
                    VoIP UK: 0131 208 0605
                    Located: Alexandria, EGYPT

                    Comment

                    Working...
                    X