Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 2
Registered: ‎04-29-2014

Cold Fusion Error 97

Really testing my patience with this one.

 

My server is in CMT.

 

has anyone who has worked wtih Cold Fusion gotten this to work?

 

I'm using their SIM Cold Fusion example and I've been all over looking at setting the time correction, but having no luck.

Member
Posts: 2
Registered: ‎04-29-2014

Re: Cold Fusion Error 97

<!--- a timestamp is generated --->

<cfdump var="#GetTimeZoneInfo()#">

<!--- Get current time. --->
<cfset dtNow = Now() />

<!--- Convert to GMT using UTC Offset. --->
<cfset dtGMT = DateAdd(
"s",
GetTimeZoneInfo().UTCTotalOffset,
dtNow
) />

<!--- Output both dates. --->
<cfoutput>
Now: #dtNow#<br />
GMT: #dtGMT#<br />
</cfoutput>


<cfset timestamp=DateDiff("s", "January 1 1970 00:00", DateConvert('UTC2Local', dtGMT)) >

<!--- The following lines generate the SIM fingerprint --->

<cf_hmac data="#loginID#^#sequence#^#timestamp#^#amount#^" key="#transactionKey#">