If your SSL provider supports it, parhaps passing the order number would
also be an acceptable option..     I particularly like either UUID, or
'mmddyyyy-hhmmss-ip1-ip2-ip3-ip4', example:  01132002-201001-192-168-0-1 if
UUID isn't available.

Code snippet:
------------------
<!--- Daniel Olivares - Update: 03_17_2002 --->
<cfset
tempvalue='#right(year(Now()),2)##month(Now())##day(Now())#-#timeformat(Now(
),"HH")##timeformat(Now(),"mm")##timeformat(Now(),"ss")#-#REMOTE_ADDR#'>
<!--- Write the date string and append the IP address like this..
03012002-120320-192.168.0.1 --->
<cfset OrderNumber='#Replace(tempvalue, ".", "-", "ALL")#'>
<!--- Replace periods from the remote address with dashes --->
-----------
End Code  snippet

This would probably make more sense in a cfscript block..   so here.

Code snippet:
------------------
<cfscript>
        // Daniel Olivares - Update: 03_17_2002

tempvalue='#month(Now())##day(Now())##right(year(Now()),4)#-#timeformat(Now(
),"HH")##timeformat(Now(),"mm")##timeformat(Now(),"ss")#-#REMOTE_ADDR#';
        // Write the date string and append the IP address like this..
03012002-120320-192.168.0.1
        OrderNumber='#Replace(tempvalue, ".", "-", "ALL")#';
        // Replace periods from the remote address with dashes
</cfscript>
-----------
End Code  snippet

Daniel Olivares
WorldWideWebz.com

Phone:  (760) 268-0504
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
URL:  http://www.worldwidewebz.com
<  mailto:[EMAIL PROTECTED] >




-----Original Message-----
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 16, 2002 2:58 PM
To: CF-Talk
Subject: Shopping Cart


Hey everyone.

I have a shopping cart CFC which is working fine. My problem is this: in
order to pay via CC, the user is taken to a third party site that is branded
to look like mine running except this is SSL. Now when the suer leaves my
site, I have a session variable holding the shopping cart object; but a
previous replier stated that going from http to https requires manually
tracking the CFID and CFTOKEN... so when the third party site redirects the
user back to my site, i check the order processed for Yes or No and if Yes I
am unable to record the sale since the session variable is not valid
anymore. Does this make sense? Is there some other technique I can use?
Client Variables? etc..

Thanks.

Mike



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to