Solved

SkipJack requesting variables

Posted on 2008-10-21
8
407 Views
Last Modified: 2013-11-29
HI,

Here is a new one...

I am implementing (painfully) a new ecommerce website using for the first time SkipJack...  

The response page I am getting is containing in its header the response variable under the form of comments. This is a method I am not used to.

They offer the option of using our own hyperlink as response page, but it does not seem to work at all...

So the only option left in this scenario is to use their HTML response page.

I am trying to set up a response page that will display conditional "messages" settled depending of the response I get from the transaction process.

My challenge is to use the comments contained in the tag (see cope snippet) that are all in comments, parse them to some JavaScript (or ASP ?)

Any Idea on how to reuse this data in a response page ?


<html><head><title>Extension</title></head><body><!--AUTHCODE=MC0899--><!--szSerialNumber=XXXXXXXXXXXXX--><!--szTransactionAmount=899--><!--szAuthorizationDeclinedMessage=--><!--szAVSResponseCode=N--><!--szAVSResponseMessage=Card authorized, no address or zip code match.--><!--szOrderNumber=NN4e2VV3v--><!--szAuthorizationResponseCode=MC0899--><!--szIsApproved=1--><!--szCVV2ResponseCode=M--><!--szCVV2ResponseMessage=Match--><!--szReturnCode=1--><!--szTransactionFileName=9802853580242.022--><!--szCAVVResponseCode=--><html>
 

<head>

<title>Skipjack: We are processing you order!</title>
 

<body bgcolor="#FFFFFF" link="#FF0000" vlink="#000000" alink="#FF9900">

Open in new window

0
Comment
Question by:SirTKC
  • 4
  • 3
8 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 22783579
Did you visit these pages?

http://www.google.com/search?q=skipjack+variable+OR+variables
http://www.skipjack.com/developers.aspx?cmsphid=85844789|7785657|8338816

I thought this one would be interesting but it wasn't
http://support.skipjack.com/index.php?pf=kb&page=index_v2&id=9&c=


I am sure you can get at the fields in the comments somehow in an easier way. I do not have time to look through the documentation at their site, but it must be somewhere in an example page
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 22783621
If you must, you need to do something like this
<html><head><title>Extension</title>

<script>

function getComments() {

  var html = document.body.innerHTML;

  var fields = html.replace(/\-\-\>/g,'').split('<\!--')

  alert(fields)

}

window.onload=function() {

  getComments();

}

</script>

</head><body><!--AUTHCODE=MC0899--><!--szSerialNumber=XXXXXXXXXXXXX--><!--szTransactionAmount=899--><!--szAuthorizationDeclinedMessage=--><!--szAVSResponseCode=N--><!--szAVSResponseMessage=Card authorized, no address or zip code match.--><!--szOrderNumber=NN4e2VV3v--><!--szAuthorizationResponseCode=MC0899--><!--szIsApproved=1--><!--szCVV2ResponseCode=M--><!--szCVV2ResponseMessage=Match--><!--szReturnCode=1--><!--szTransactionFileName=9802853580242.022--><!--szCAVVResponseCode=--><html>

 

<head>

<title>Skipjack: We are processing you order!</title>

 

<body bgcolor="#FFFFFF" link="#FF0000" vlink="#000000" alink="#FF9900">

Open in new window

0
 
LVL 3

Author Closing Comment

by:SirTKC
ID: 31508585
I had to put this because your hyperlink led us to other hyperlinks that contained the answers we were looking for.

Thanks !!
0
 

Expert Comment

by:FDTINC
ID: 35166972
What were those answers? I'm facing the exact same dilemma right now, and the links you provided are old I guess, because the skip jack developer link is a blank page.

If I add my own custom response url in the preferences, it forwards me properly, but it loses all the response data. If I leave it with the default response, the data is there but I can't access it. Their tech support is not willing (or is unable to) help me with my response handling. I'm trying to use a jquery $.ajax success: function(response) to capture the response html, but it's failing every time.

Any help would be appreciated
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35169027
0
 

Expert Comment

by:FDTINC
ID: 35169194
I've been to that link and a few others like it. They all say the same thing in different words, "grab the response and parse the variables", but none explain how to do that. I'm trying a jquery Ajax call to capture the response, but it appears to be failing on POST. The transaction is not even showing in the reports.

Any suggestions on how to capture the response data without leaving the current page?
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35170395
Impossible to tell without knowing why your post does not work

I do not do skipjack, only JS and I already posted how to get the vars - you need the response but the code is the same as I posted here
0
 

Expert Comment

by:FDTINC
ID: 35171728
Thank you. Your parsing code will work great if I can resolve the posting issue. Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now