Get a Quote Today!   |   + 1 (301) 424 3903




 
  Community
 
Need Help?
Visit our Training page
Request a Quote or Consultation
SIGN UP FOR THE TERATECH NEWSLETTER
 

ColdCuts

Cut: SkipJack Script for E-commerce and ColdFusion
Cut#: 328 
Cut Date: 03/07/2005 
Cutter: Marc Pinkus 
Topic: E-Commerce 
Overview: If you have a customer that uses SkipJack for his merchant account gateway on his e-commerce site, then use this script to pass your customer and credit card information from his site, off to SkipJack, then back to your site again.

SkipJack will return to you, using ColdFusion form variables ( form.szIsApproved and form.szTransactionFileName ).

If they send back to you form.szIsApproved = "1" then that meant that it went through successfully.

Paste this script into your e-commerce application to integrate directly up to the SkipJack SSL merchant account gateway.

If you have questions, I will be happy to assist at support@coldfusioncart.com

 

Cut Code:
   
<cfhttp url="https://developer.skipjackic.com/scripts/EvolvCC.dll?Authorize" method="post">

<!----contact info---->
<cfhttpparam type="formfield" name="sjname" value="#form.firstname# #form.lastname#">
<cfhttpparam type="formfield" name="Email" value="#form.email#">
<cfhttpparam type="formfield" name="Shiptophone" value="#form.homephone#">

<!----billing info---->
<cfhttpparam type="formfield" name="Streetaddress" value="#form.address1#">
<cfhttpparam type="formfield" name="Streetaddress2" value="#form.address2#">
<cfhttpparam type="formfield" name="City" value="#form.city#">
<cfhttpparam type="formfield" name="State" value="#form.state_code#">
<cfhttpparam type="formfield" name="Country" value="#form.country_name#">
<cfhttpparam type="formfield" name="Zipcode" value="#form.zip#">

<!----cc info---->
<cfhttpparam type="formfield" name="type" value="#form.cc_type#">
<cfhttpparam type="formfield" name="Month" value="#form.expiry_month#">
<cfhttpparam type="formfield" name="Year" value="#form.expiry_year#">
<cfhttpparam type="formfield" name="Accountnumber" value="#form.cc_number#">

<!----shipping info---->
<cfhttpparam type="formfield" name="Shiptoname" value="">
<cfhttpparam type="formfield" name="Shiptostreetaddress" value="">
<cfhttpparam type="formfield" name="Shiptostreetaddress2" value="">
<cfhttpparam type="formfield" name="Shiptocity" value="">
<cfhttpparam type="formfield" name="Shiptostate" value="">
<cfhttpparam type="formfield" name="Shiptocountry" value="">
<cfhttpparam type="formfield" name="Shiptozipcode" value="">

<!----skip jack crap---->
<cfhttpparam type="formfield" name="Ordernumber" value="#orderID#">               
<cfhttpparam type="formfield" name="Serialnumber" value="#SkipJack_Serialnumber#">
<cfhttpparam type="formfield" name="Transactionamount" value="#total_billing_amount#">

<!----the order details---->
<cfhttpparam type="formfield" name="Orderstring" value="ItemNumber~itemDescription~itemUnitCost~Quantity~N~||">

</cfhttp>

<!----check what skipjack says & kick the user out of that is the case---->
<cfparam name="form.szIsApproved" default="">
<cfparam name="form.szTransactionFileName" default="">

<cfif form.szIsApproved is "1">

   <!----reflect it as ORDER SUCCESSFUL in the order---->
   <cfquery datasource="#datasource#">
   update orders
   set
   flagged_as_billed_date = '#dateFormat(now(), "yyyy-mm-dd")#',
   flagged_as_billed_ip = '#cgi.remote_addr#',
   realtime_status = 'Transaction Complete',
   realtime_transID = '#szTransactionFileName#'
   realtime_gateway = 'SkipJack'
   where orderID = #orderID#
   </cfquery>
   
<cfelse>

   <p>There was a problem with your card.
   <p><a href="JavaScript:history.go(-1)">Please go back</a>
   <cfabort>

</cfif>