Deanna,
Give this a whirl - I haven't used viaklix in about 4 years with another
client, worked then, params might be slightly different now.  Let me know,
as I'm getting ready to do on for a different client:

<cfsetting enablecfoutputonly="yes">

<!--- Convert the four digit year to the last two digts-merge the month and
year expiration to one four digit number --->

        <CFLOCK SCOPE="SESSION" TYPE="READONLY" TIMEOUT="10">
                <!--- Convert the year to two digits --->
                        <CFSET VARIABLES.expYY =
Right(SESSION.ecom.CreditCardExpirationYear, 2)>
                        
        
<!--- Send the form variables to the Authorizing Agent --->

                <CFHTTP URL="https://www.viaklix.com/process.asp";
method="post">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_show_form" value="FALSE">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_result_format" value="ASCII">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_merchant_ID" value="[providedID]">
                                <CFHTTPPARAM type="FORMFIELD" name="ssl_pin"
value="[providedpin]">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_transaction_type" value="SALE">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_amount" value="#VARIABLES.productprice#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_description" value="#VARIABLES.productName#" >
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_card_number" value="#SESSION.ecom.CreditCardNumber#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_exp_date"
value="#SESSION.ecom.CreditCardExpirationMonth##VARIABLES.expYY#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_company" value="#SESSION.ecom.BillToCompanyName#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_first_name" value="#SESSION.ecom.FirstName#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_last_name" value="#SESSION.ecom.LastName#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_avs_address" value="#SESSION.ecom.BillToAddress1#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_city" value="#SESSION.ecom.BillToCity#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_state" value="#SESSION.ecom.BillToStateProvince#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_avs_zip" value="#SESSION.ecom.BillToZipPostalCode#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_country" value="#SESSION.ecom.BillToCountry#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_email" value="#SESSION.ecom.EmailAddress#">
                                <CFHTTPPARAM type="FORMFIELD"
name="ssl_phone" value="#SESSION.ecom.DayPhoneCountryCode#
#SESSION.ecom.DayPhoneAreaCode# #SESSION.ecom.DayPhoneNumber#">
                                
                </CFHTTP>

        </CFLOCK>
        

<!--- Retrieve the transaction results from the Credit Card Processor --->
                <CFSET VARIABLES.ccpVars = #CFHTTP.FILECONTENT#>

<!--- Convert the string to a comma-delimited format, replacing spaces with
commas --->
                <CFSET VARIABLES.ccpVars = REREPLACE(VARIABLES.ccpVars,
"[[:space:]]", ",", "ALL")> 

<!--- Assign a New variable to each of the comma delimited items in the list
--->    
                <CFSET VARIABLES.ssl_result = ListFirst(VARIABLES.ccpVars)>
                <CFSET VARIABLES.ssl_result_message =
ListGetAt(VARIABLES.ccpVars, 2)>
                <CFSET VARIABLES.ssl_txn_id = ListGetAt(VARIABLES.ccpVars,
3)>
                <CFSET VARIABLES.ssl_approval_code =
ListGetAt(VARIABLES.ccpVars, 4)>
                
<!--- Change the variable character length to keep only those characters to
the right of the "=" sign --->

                <CFSET URL.approved = RemoveChars(VARIABLES.ssl_result, 1,
11)>
                <CFSET VARIABLES.resultsMessage =
RemoveChars(VARIABLES.ssl_result_message, 1, 19)>
                <CFSET VARIABLES.ccpTransactionID =
RemoveChars(VARIABLES.ssl_txn_id, 1, 11)>
                <CFSET VARIABLES.ccpApprovalCode =
RemoveChars(VARIABLES.ssl_approval_code, 1, 18)>

                <!--- Test Output of Variables --->
                                <!---  <CFOUTPUT>
                                        #URL.approved#<br>
                                        #VARIABLES.resultsMessage#<br />
                                        #VARIABLES.ccpTransactionID#<br /> 
                                --->

Thanks,
Mark

-----Original Message-----
From: Deanna Schneider [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 18, 2006 1:59 PM
To: CF-Talk
Subject: Re: Viaklix

>From what I understand, it's just form posting. Not too complicated and
really unrelated for the most part to the technology used.

-d

On 9/18/06, Jesse Kuhn <[EMAIL PROTECTED]> wrote:
> I am looking to use viaklix as well. Has anyone done this successfully
yet... their developers guide only supports asp development. I am putting
together my first shopping cart and am new to CF so if anyone has been able
to get viaklix to work within a coldfusion site and has any recommendations,
examples or can point me in the right direction I would really appreciate
it.
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253473
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to