Web Development Company

We offer custom software and Web development services under our proven offshore model
How to implement skipjack payment gateway , Asp.Net ,C#

Wednesday, July 14th, 2010 | .net development, .Net Technology, .net web development, .net website development, Asp.Net, asp.net developers, asp.net development, asp.net framework, asp.net programming, asp.net web development, asp.net web development india, asp.net website development, b2b business to business, hire asp.net developer, hiring asp.net developers, hiring asp.net professionals, hiring asp.net programmers, payment gateway, payment gateway integration, payment gateway system, shopping cart, shopping cart development, web application development, worldpay | admin


Skipjack Come explore the many features that make Skipjack Transaction Network the leading payment gateway in North America.

To create new skipjack payment gateway integration with  asp.net 2.0 use below code

public class SkipJack
{
private static string URL = ConfigurationSettings.AppSettings["Gateway.SkipJack.Url"].ToString();
private static string SerialNumber = ConfigurationSettings.AppSettings["Gateway.SkipJack.SerialNumber"].ToString();
private static string developerserialnumber = ConfigurationSettings.AppSettings["Gateway.SkipJack.developerserialnumber"].ToString();

public static string Submit(PaymentMode paymentMode, decimal _TotalAmount,string _orderstring,string _ordernumber,decimal _Shipping, CreditCard _CreditCard, GatewayAddress _BillingAddress)
{
try
{
String result = “”;

string iAdd = “&”;

StringBuilder mystrime = new StringBuilder();

mystrime.Append(“SerialNumber=” + SerialNumber + iAdd);

if (paymentMode == PaymentMode.Test)
mystrime.Append(“developerserialnumber=” + developerserialnumber + iAdd);

mystrime.Append(“sjname=” + _BillingAddress.FName + ” ” + _BillingAddress.LName + iAdd);
mystrime.Append(“streetaddress=” + _BillingAddress.Streetaddress + iAdd);
mystrime.Append(“city=” + _BillingAddress.City + iAdd);
mystrime.Append(“state=” + _BillingAddress.State + iAdd);
mystrime.Append(“zipcode=” + _BillingAddress.Zipcode + iAdd);
mystrime.Append(“shiptophone=” + _BillingAddress.Phone + iAdd);
mystrime.Append(“email=” + _BillingAddress.Email + iAdd);
mystrime.Append(“ordernumber=” + _ordernumber + iAdd);
mystrime.Append(“orderstring=” + _orderstring + iAdd);
mystrime.Append(“transactionamount=” + _TotalAmount.ToString(“F”) + iAdd);
mystrime.Append(“shippinghandling=” + _Shipping.ToString(“F”) + iAdd);
mystrime.Append(“shippinghandling=” + _Shipping.ToString(“F”) + iAdd);

//mystrime.Append(“CustomerTax =” + _Shipping.ToString(“F”) + iAdd); // tax percentage

mystrime.Append(“accountnumber=” + _CreditCard.CreditCardNumber + iAdd);
mystrime.Append(“month=” + _CreditCard.ExpirationMonth + iAdd);
mystrime.Append(“year=” + _CreditCard.ExpirationYear + iAdd);
//mystrime.Append(“month=08″ + iAdd);
//mystrime.Append(“year=09″ + iAdd);
mystrime.Append(“cvv2=” + _CreditCard.CSV);
//

String strPost = mystrime.ToString();

StreamWriter myWriter = null;

HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(URL);

objRequest.Method = “POST”;

objRequest.ContentLength = strPost.Length;

objRequest.ContentType = “application/x-www-form-urlencoded”;

try
{
myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(strPost);
}

catch (Exception e)
{

throw e;
}

finally
{
myWriter.Close();

}

HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();

using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))
{

result = sr.ReadToEnd();
sr.Close();

}
return result;
}
catch (Exception ex)
{
throw ex;
}
}

}

Comments

9 Comments
  1. [...] More: How to implement skipjack payment gateway , Asp.Net ,C# | Web … [...]

    Comment by How to implement skipjack payment gateway , Asp.Net ,C# | Web … | www.erasedmail.com on July 14, 2010

      1. [...] How to implement skipjack payment gateway , Asp.Net ,C# | Web … [...]

        Comment by Resolved Question: Visual Basic: Reading Webpage HTML? | 24h-tips.com on August 19, 2010

          1. [...] How to implement skipjack payment gateway , Asp.Net ,C# | Web … [...]

            Comment by Resolved Question: Visual Basic: Reading Webpage HTML — error: “Statement is not a valid namespace”? | 24h-tips.com on August 19, 2010


              1. physician assistant

                Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

                Comment by physician assistant on August 20, 2010

                  1. Nice dispatch and this fill someone in on helped me alot in my college assignement. Gratefulness you as your information.

                    Comment by WP Themes on September 22, 2010

                      1. Thanks for the post

                        Comment by Ron Tedwater on November 13, 2010

                          1. hi, new to the site, thanks.

                            Comment by HogIllirl on February 24, 2011

                              1. Really good post, but no idea about skipjack payment gateway.

                                Comment by Openxcell on April 19, 2011

                                  1. What is PaymentMode? It is undefined for me. Am I missing a reference or using?

                                    Comment by grandolph on June 7, 2011


                                    1. What is 15 + 5 ?
                                      Please leave these two fields as-is:
                                      IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)