Payment Technology Blog

Explore our modern gateway designed to help you sell more, make more and keep more.

Sunday, May 30, 2010

How To: Credit Card and ACH (e-check) integration with ASP.NET / C#

This is the seventh part in a series of postings on how to integrate credit card and ACH/E-check transactions into various systems. This installment demonstrates code used for processing payments (credit card and/or ACH) within a .NET / C# application.

This was taken from the NELiX TransaX FleXport toolkit documentation. Credit card integration examples can be downloaded on the NELiX TransaX FleXport page.

Assumptions:
- Using NELiX TransaX Payment Gateway
- Communicating using NELiX TransaX Webservice

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;


public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void ContinueButton_Click(object sender, ImageClickEventArgs e)
{
RoXAPI_WebService.RoXAPI ws = new RoXAPI_WebService.RoXAPI();
RoXAPI_WebService.Params wsParams = new RoXAPI_WebService.Params();
RoXAPI_WebService.Responses wsResponse = new RoXAPI_WebService.Responses();

wsParams.TransactionType = TransactionType.SelectedValue;
wsParams.GatewayUserName = GatewayUserName.Text;
wsParams.GatewayPassword = GatewayPassword.Text;
wsParams.IPAddress = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];

wsParams.Merchant_Defined_Field_1 = Merchant_Defined_Field_1.Text;
wsParams.Merchant_Defined_Field_2 = Merchant_Defined_Field_2.Text;

if(TransactionType.SelectedValue == "void")
wsParams.TransactionID = TransactionID.Text;

if(TransactionType.SelectedValue == "refund")
{
wsParams.Amount = Amount.Text;
wsParams.TransactionID = TransactionID.Text;
}

if (TransactionType.SelectedValue == "capture" )
{
wsParams.Amount = Amount.Text;
wsParams.TransactionID = TransactionID.Text;
wsParams.OrderID = OrderID.Text;
wsParams.Tracking_Number = Tracking_Number.Text;
wsParams.Shipping_Carrier = Shipping_Carrier.Text;
}

if (TransactionType.SelectedValue == "update")
{
wsParams.TransactionID = TransactionID.Text;
wsParams.Tracking_Number = Tracking_Number.Text;
wsParams.Shipping_Carrier = Shipping_Carrier.Text;
}

if (Customer_Vault_Action.SelectedValue == "delete_customer")
{
wsParams.Customer_Vault_Action = Customer_Vault_Action.SelectedValue;
wsParams.Customer_Vault_ID = Customer_Vault_ID.Text;
}

if(TransactionType.SelectedValue == "sale" || TransactionType.SelectedValue == "auth" || Customer_Vault_Action.SelectedValue == "add_customer" || Customer_Vault_Action.SelectedValue == "update_customer" )
{
wsParams.PaymentType = PaymentType.SelectedValue;


if(Customer_Vault_Action.SelectedValue == "add_customer" || Customer_Vault_Action.SelectedValue == "update_customer" )
{
wsParams.Customer_Vault_Action = Customer_Vault_Action.SelectedValue;
}
wsParams.Customer_Vault_ID = Customer_Vault_ID.Text;

if (wsParams.PaymentType == "creditcard")
{
wsParams.CCNumber = CCNumber.Text;
wsParams.CCExpDate = CCExpDate.Text;
wsParams.CVV = CVV.Text;
}
if(wsParams.PaymentType == "check")
{
wsParams.CheckName = CheckName.Text;
wsParams.CheckABA = CheckABA.Text;
wsParams.CheckAccount = CheckAccount.Text;
wsParams.AccountHolderType = AccountHolderType.SelectedValue;
wsParams.AccountType = AccountType.SelectedValue;
wsParams.SecCode = SecCode.SelectedValue;
}

wsParams.Payment_Plan_SKU = Payment_Plan_SKU.Text;

wsParams.Amount = Amount.Text;
wsParams.Tax = Tax.Text;
wsParams.Shipping = Shipping.Text;
wsParams.OrderDescription = OrderDescription.Text;
wsParams.OrderID = OrderID.Text;
wsParams.PONumber = PONumber.Text;

wsParams.FirstName = FirstName.Text;
wsParams.LastName = LastName.Text;
wsParams.Company = Company.Text;
wsParams.Address1 = Address1.Text;
wsParams.Address2 = Address2.Text;
wsParams.City = City.Text;
wsParams.State = State.Text;
wsParams.Zip = Zip.Text;
wsParams.Country = Country.Text;
wsParams.Phone = Phone.Text;
wsParams.Fax = Fax.Text;
wsParams.EMail = EMail.Text;
wsParams.Website = Website.Text;

wsParams.ShippingFirstName = ShippingFirstName.Text;
wsParams.ShippingLastName = ShippingLastName.Text;
wsParams.ShippingCompany = ShippingCompany.Text;
wsParams.ShippingAddress1 = ShippingAddress1.Text;
wsParams.ShippingAddress2 = ShippingAddress2.Text;
wsParams.ShippingCity = ShippingCity.Text;
wsParams.ShippingState = ShippingState.Text;
wsParams.ShippingZip = ShippingZip.Text;
wsParams.ShippingCountry = ShippingCountry.Text;
wsParams.ShippingEmail = ShippingEmail.Text;

wsParams.ProcessorID = ProcessorID.Text;
wsParams.Descriptor = Descriptor.Text;
wsParams.DescriptorPhone = DescriptorPhone.Text;
}

wsResponse = ws.ProcessTransaction(wsParams);

MSG.Text = "STATUS_CODE: " + wsResponse.STATUS_CODE + "";
MSG.Text += "STATUS_MSG: " + wsResponse.STATUS_MSG + "";
MSG.Text += "TRANS_ID: " + wsResponse.TRANS_ID + "";
MSG.Text += "AUTH_CODE: " + wsResponse.AUTH_CODE + "";
MSG.Text += "AVS_CODE: " + wsResponse.AVS_CODE + "";
MSG.Text += "AVS_MSG: " + wsResponse.AVS_MSG + "";
MSG.Text += "CVV2_CODE: " + wsResponse.CVV2_CODE + "";
MSG.Text += "CVV2_MSG: " + wsResponse.CVV2_MSG + "";
MSG.Text += "ORDERID: " + wsResponse.ORDERID + "";
MSG.Text += "CUSTOMER_VAULT_ID: " + wsResponse.CUSTOMER_VAULT_ID + "";
MSG.Text += "FULLRESPONSE: " + wsResponse.FULLRESPONSE + "";
MSG.Text += "POSTSTRING: " + wsResponse.POSTSTRING + "";

if( wsResponse.STATUS_CODE == "1" )
{
MSG.Text = "SUCCESS!" + MSG.Text;
}
else
{
if( wsResponse.STATUS_CODE == "2")
MSG.Text = "DECLINE" + MSG.Text;
else
MSG.Text = "ERROR" + MSG.Text;

}


}
}


If you need any assistance with payment processing integration with your .NET system, we are here to help!

Download .NET /C# credit card and ACH (e-check) integration examples.



Monday, May 24, 2010

VB6 / Visual Basic 6 - credit card and ACH procecessing

I find myself working in VB6 very frequently lately.

And, as we put out examples of integrating credit card and ACH processing on a variety of different platforms, it occurred to me that we've integrated these types of features into many VB6 applications lately. Visual Basic is a programming language that has been around for quite some time now, and is loved by many developers.

Our FleXport library has examples in VBScript, VBA and VB.NET, but not VB6. Well, until now! We've recently updated our library to include a VB6 integration example.

VB6 shines when low level communication is needed - for example, when you need to communicate with a piece of hardware directly, or hook into the windows api. VB6 is still a tool of choice for many developers in these scenarios, and many of these applications also have need for some type of credit card processing, or ACH / E-check processing component.

With our examples (using the NELiX TransaX Gateway) it's easy!

Visual Basic 6 Credit Card Integration
More on NELiX TransaX FleXport
More on the NELiX TransaX Payment Gateway

Thursday, May 20, 2010

How To: Integrate Credit Card and ACH (e-check) processing with Classic ASP

This is the fifth part in a series of postings on how to integrate credit card and ACH/E-check transactions into various systems. This installment demonstrates code used for processing payments (credit card and/or ACH) within a Classic ASP application.

This was taken from the NELiX TransaX FleXport toolkit documentation. Credit card integration examples can be downloaded on the NELiX TransaX FleXport page.

Assumptions:
- Using NELiX TransaX Payment Gateway
- Communicating using NELiX TransaX Webservice
<%  Function BuildXML()   Dim vString    vString = ""         vString = vString & "" & request("TransactionType") & ""
vString = vString & "" & request("GatewayUserName") & ""
vString = vString & "" & request("GatewayPassword") & ""
vString = vString & "" & Request.Servervariables("REMOTE_HOST") & ""


vString = vString & "" & request("Merchant_Defined_Field_1") & ""
vString = vString & "" & request("Merchant_Defined_Field_2") & ""

If request("TransactionType") = "void" Then
vString = vString & "" & request("TransactionID") & ""

if request("PaymentType")="check" then
vString = vString & "" & request("PaymentType") & ""
end if
End If

If request("TransactionType") = "refund" Then
vString = vString & "" & request("Amount") & ""
vString = vString & "" & request("TransactionID") & ""

if request("PaymentType")="check" then
vString = vString & "" & request("PaymentType") & ""
end if

End If

If request("TransactionType") = "capture" Then
vString = vString & "" & request("Amount") & ""
vString = vString & "" & request("TransactionID") & ""
vString = vString & "" & request("OrderID") & ""
vString = vString & "" & request("Tracking_Number") & ""
vString = vString & "" & request("Shipping_Carrier") & ""

if request("PaymentType")="check" then
vString = vString & "" & request("PaymentType") & ""
end if
End If

If request("TransactionType") = "update" Then
vString = vString & "" & request("TransactionID") & ""
vString = vString & "" & request("Tracking_Number") & ""
vString = vString & "" & request("Shipping_Carrier") & ""

if request("PaymentType")="check" then
vString = vString & "" & request("PaymentType") & ""
end if
End If

If request("Customer_Vault_Action") = "delete_customer" Then
vString = vString & "" & request("Customer_Vault_Action") & ""
vString = vString & "" & request("Customer_Vault_ID") & ""
End If

If request("TransactionType") = "sale" Or request("TransactionType") = "auth" Or request("Customer_Vault_Action")
= "add_customer" Or request("Customer_Vault_Action") = "update_customer" Then
vString = vString & "" & request("PaymentType") & ""


If request("Customer_Vault_Action") = "add_customer" Or request("Customer_Vault_Action") = "update_customer" Then
vString = vString & "" & request("Customer_Vault_Action") & ""
End If
vString = vString & "" & request("Customer_Vault_ID") & ""

If request("PaymentType") = "creditcard" Then
vString = vString & "" & request("CCNumber") & ""
vString = vString & "" & request("CCExpDate") & ""
vString = vString & "" & request("CVV") & ""
End If
If request("PaymentType") = "check" Then
vString = vString & "" & request("CheckName") & ""
vString = vString & "" & request("CheckABA") & ""
vString = vString & "" & request("CheckAccount") & ""
vString = vString & "" & request("AccountHolderType") & ""
vString = vString & "" & request("AccountType") & ""
vString = vString & "" & request("SecCode") & ""
End If

vString = vString & "" & request("Payment_Plan_SKU") & ""

vString = vString & "" & request("Amount") & ""
vString = vString & "" & request("Tax") & ""
vString = vString & "" & request("Shipping") & ""
vString = vString & "" & request("OrderDescription") & ""
vString = vString & "" & request("OrderID") & ""
vString = vString & "" & request("PONumber") & ""

vString = vString & "" & request("FirstName") & ""
vString = vString & "" & request("LastName") & ""
vString = vString & "" & request("Company") & ""
vString = vString & "" & request("Address1") & ""
vString = vString & "" & request("Address2") & ""
vString = vString & "" & request("City") & ""
vString = vString & "" & request("State") & ""
vString = vString & "" & request("Zip") & ""
vString = vString & "" & request("Country") & ""
vString = vString & "" & request("Phone") & ""
vString = vString & "" & request("Fax") & ""
vString = vString & "" & request("EMail") & ""
vString = vString & "" & request("Website") & ""

vString = vString & "" & request("ShippingFirstName") & ""
vString = vString & "" & request("ShippingLastName") & ""
vString = vString & "" & request("ShippingCompany") & ""
vString = vString & "" & request("ShippingAddress1") & ""
vString = vString & "" & request("ShippingAddress2") & ""
vString = vString & "" & request("ShippingCity") & ""
vString = vString & "" & request("ShippingState") & ""
vString = vString & "" & request("ShippingZip") & ""
vString = vString & "" & request("ShippingCountry") & ""
vString = vString & "" & request("ShippingEmail") & ""

vString = vString & "" & request("ProcessorID") & ""
vString = vString & "" & request("Descriptor") & ""
vString = vString & "" & request("DescriptorPhone") & ""
End If


BuildXML = vString

End Function

Function SoapWrapper(vXML)
Dim S

S = ""
S = S & ""
S = S & ""
S = S & "" & vXML & "
"

SoapWrapper = S
End Function


Dim webServiceUrl, httpReq, vXML, oNode

Set httpReq = Server.CreateObject("Microsoft.XMLHTTP")

webServiceUrl = "https://www.nelixtransax.com/roxapi/rox.asmx"
vXML = SoapWrapper(BuildXML())

httpReq.Open "POST", webServiceUrl, False
httpReq.setRequestHeader "Content-Type", "text/xml"
httpReq.setRequestHeader "Connection", "close"
httpReq.setRequestHeader "SOAPAction", "https://www.nelixtransax.com/roxapi/ProcessTransaction"
httpReq.Send vXML

'Results = httpReq.responseText

Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument.3.0")
xmlDoc.loadXML (httpReq.responseXML.XML)
Set oNode = xmlDoc.childNodes(1).childNodes(0).childNodes(0).childNodes(0)

Results = ""
Results = Results & "STATUS_CODE: " & oNode.selectSingleNode("STATUS_CODE").Text & ""
Results = Results & "STATUS_MSG: " & oNode.selectSingleNode("STATUS_MSG").Text & ""
Results = Results & "TRANS_ID: " & oNode.selectSingleNode("TRANS_ID").Text & ""
Results = Results & "AUTH_CODE: " & oNode.selectSingleNode("AUTH_CODE").Text & ""
Results = Results & "AVS_CODE: " & oNode.selectSingleNode("AVS_CODE").Text & ""
Results = Results & "AVS_MSG: " & oNode.selectSingleNode("AVS_MSG").Text & ""
Results = Results & "CVV2_CODE: " & oNode.selectSingleNode("CVV2_CODE").Text & ""
Results = Results & "CVV2_MSG: " & oNode.selectSingleNode("CVV2_MSG").Text & ""
Results = Results & "ORDERID: " & oNode.selectSingleNode("ORDERID").Text & ""
Results = Results & "CUSTOMER_VAULT_ID: " & oNode.selectSingleNode("CUSTOMER_VAULT_ID").Text & ""
Results = Results & "FULLRESPONSE: " & Replace(oNode.selectSingleNode("FULLRESPONSE").Text, "&", "&") & ""

Set httpReq = Nothing

response.write "RESULTS:

" & Results
%>



If you need any assistance with payment processing integration with your Classic ASP system, we are here to help!

Download Classic ASP credit card and ACH (e-check) integration examples.


Monday, May 10, 2010

Credit Card / ACH processing integration example using PHP now available on my blog: http://ping.fm/8HLcT

How To: Credit Card and ACH (e-check) integration in PHP

This is the fourth part in a series of postings on how to integrate credit card and ACH/E-check transactions into various systems. This installment demonstrates code used for processing payments (credit card and/or ACH) within a PHP application.

This was taken from the NELiX TransaX FleXport toolkit documentation. Credit card integration examples can be downloaded on the NELiX TransaX FleXport page.

Assumptions:
- Using NELiX TransaX Payment Gateway
- Communicating using NELiX TransaX Webservice
 ini_set('display_errors', '1');
//load nusoap code
require_once('nusoap.php');
//create client
$soapclient = new nusoap_client('https://www.nelixtransax.com/roxapi/rox.asmx?WSDL','wsdl');
//gather parameters
$params['TransactionType'] = $_POST['TransactionType'];
$params['GatewayUserName'] = $_POST['GatewayUserName'];
$params['GatewayPassword'] = $_POST['GatewayPassword'];
$params['IPAddress'] = $_SERVER['REMOTE_ADDR'];
$params['Merchant_Defined_Field_1'] = $_POST['Merchant_Defined_Field_1'];
$params['Merchant_Defined_Field_2'] = $_POST['Merchant_Defined_Field_2'];
$params['PaymentType'] = $_POST['PaymentType'];
$params['Customer_Vault_ID'] = $_POST['Customer_Vault_ID'];
$params['CCNumber'] = $_POST['CCNumber'];
$params['CCExpDate'] = $_POST['CCExpDate'];
$params['CVV'] = $_POST['CVV'];
$params['Payment_Plan_SKU'] = $_POST['Payment_Plan_SKU'];
$params['Amount'] = $_POST['Amount'];
$params['Tax'] = $_POST['Tax'];
$params['Shipping'] = $_POST['Shipping'];
$params['OrderDescription'] = $_POST['OrderDescription'];
$params['OrderID'] = $_POST['OrderID'];
$params['PONumber'] = $_POST['PONumber'];
$params['FirstName'] = $_POST['FirstName'];
$params['LastName'] = $_POST['LastName'];
$params['Company'] = $_POST['Company'];
$params['Address1'] = $_POST['Address1'];
$params['Address2'] = $_POST['Address2'];
$params['City'] = $_POST['City'];
$params['State'] = $_POST['State'];
$params['Zip'] = $_POST['Zip'];
$params['Country'] = $_POST['Country'];
$params['Phone'] = $_POST['Phone'];
$params['Fax'] = $_POST['Fax'];
$params['EMail'] = $_POST['EMail'];
$params['Website'] = $_POST['Website'];
$params['ShippingFirstName'] = $_POST['ShippingFirstName'];
$params['ShippingLastName'] = $_POST['ShippingLastName'];
$params['ShippingCompany'] = $_POST['ShippingCompany'];
$params['ShippingAddress1'] = $_POST['ShippingAddress1'];
$params['ShippingAddress2'] = $_POST['ShippingAddress2'];
$params['ShippingCity'] = $_POST['ShippingCity'];
$params['ShippingState'] = $_POST['ShippingState'];
$params['ShippingZip'] = $_POST['ShippingZip'];
$params['ShippingCountry'] = $_POST['ShippingCountry'];
$params['ShippingEmail'] = $_POST['ShippingEmail'];
$params['ProcessorID'] = $_POST['ProcessorID'];
$params['Descriptor'] = $_POST['Descriptor'];
$params['DescriptorPhone'] = $_POST['DescriptorPhone'];


$proxy = $soapclient->getProxy();

$result = $proxy->ProcessTransaction(Array('objparameters' => $params));

print_r($result);

?>



If you need any assistance with payment processing integration with your PHP system, we are here to help!

Download PHP credit card and ACH (e-check) integration examples.

Wednesday, May 5, 2010

How To: Credit Card/ACH Integration with ASP.NET / VB.NET

This is the third in a series of postings on how to integrate credit card and ACH/E-check transactions into various systems. This installment demonstrates code used for processing payments (credit card and/or ACH) within a VB.NET application.

This was taken from the NELiX TransaX FleXport toolkit documentation. Credit card integration examples can be downloaded on the NELiX TransaX FleXport page.

Assumptions:
- Using NELiX TransaX Payment Gateway
- Communicating using NELiX TransaX Webservice
Partial Public Class GatewayAPI_Demo
Inherits System.Web.UI.Page

Public connStr, vSQL, vID, vMode, vMSG

Protected Sub ContinueButton_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) _
Handles ContinueButton.Click

Dim ws As New RoXAPI.RoXAPI
Dim wsParams As New RoXAPI.Params
Dim wsResponse As New RoXAPI.Responses

wsParams.TransactionType = Me.TransactionType.SelectedValue
wsParams.GatewayUserName = Me.GatewayUserName.Text
wsParams.GatewayPassword = Me.GatewayPassword.Text
wsParams.IPAddress = HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")

wsParams.Merchant_Defined_Field_1 = Merchant_Defined_Field_1.Text
wsParams.Merchant_Defined_Field_2 = Merchant_Defined_Field_2.Text

If Me.TransactionType.SelectedValue = "void" Then
wsParams.TransactionID = Me.TransactionID.Text
wsParams.PaymentType = Me.PaymentType.SelectedValue
End If

If Me.TransactionType.SelectedValue = "refund" Then
wsParams.Amount = Me.Amount.Text
wsParams.TransactionID = Me.TransactionID.Text
wsParams.PaymentType = Me.PaymentType.SelectedValue
End If

If Me.TransactionType.SelectedValue = "capture" Then
wsParams.Amount = Me.Amount.Text
wsParams.TransactionID = Me.TransactionID.Text
wsParams.OrderID = Me.OrderID.Text
wsParams.Tracking_Number = Me.Tracking_Number.Text
wsParams.Shipping_Carrier = Me.Shipping_Carrier.Text
wsParams.PaymentType = Me.PaymentType.SelectedValue
End If

If Me.TransactionType.SelectedValue = "update" Then
wsParams.TransactionID = Me.TransactionID.Text
wsParams.Tracking_Number = Me.Tracking_Number.Text
wsParams.Shipping_Carrier = Me.Shipping_Carrier.Text
wsParams.PaymentType = Me.PaymentType.SelectedValue
End If

If Me.Customer_Vault_Action.SelectedValue = "delete_customer" Then
wsParams.Customer_Vault_Action = Me.Customer_Vault_Action.SelectedValue
wsParams.Customer_Vault_ID = Me.Customer_Vault_ID.Text
End If

If Me.TransactionType.SelectedValue = "sale" Or Me.TransactionType.SelectedValue = "auth" Or _
Me.Customer_Vault_Action.SelectedValue = "add_customer" Or _
Me.Customer_Vault_Action.SelectedValue = "update_customer" Then
wsParams.PaymentType = Me.PaymentType.SelectedValue

If Me.Customer_Vault_Action.SelectedValue = "add_customer" Or _
Me.Customer_Vault_Action.SelectedValue = "update_customer" Then
wsParams.Customer_Vault_Action = Me.Customer_Vault_Action.SelectedValue
End If
wsParams.Customer_Vault_ID = Me.Customer_Vault_ID.Text

If wsParams.PaymentType = "creditcard" Then
wsParams.CCNumber = Me.CCNumber.Text
wsParams.CCExpDate = Me.CCExpDate.Text
wsParams.CVV = Me.CVV.Text
End If
If wsParams.PaymentType = "check" Then
wsParams.CheckName = Me.CheckName.Text
wsParams.CheckABA = Me.CheckABA.Text
wsParams.CheckAccount = Me.CheckAccount.Text
wsParams.AccountHolderType = Me.AccountHolderType.SelectedValue
wsParams.AccountType = Me.AccountType.SelectedValue
wsParams.SecCode = Me.SecCode.SelectedValue
End If

wsParams.Payment_Plan_SKU = Me.Payment_Plan_SKU.Text

wsParams.Amount = Me.Amount.Text
wsParams.Tax = Me.Tax.Text
wsParams.Shipping = Me.Shipping.Text
wsParams.OrderDescription = Me.OrderDescription.Text
wsParams.OrderID = Me.OrderID.Text
wsParams.PONumber = Me.PONumber.Text

wsParams.FirstName = Me.FirstName.Text
wsParams.LastName = Me.LastName.Text
wsParams.Company = Me.Company.Text
wsParams.Address1 = Me.Address1.Text
wsParams.Address2 = Me.Address2.Text
wsParams.City = Me.City.Text
wsParams.State = Me.State.Text
wsParams.Zip = Me.Zip.Text
wsParams.Country = Me.Country.Text
wsParams.Phone = Me.Phone.Text
wsParams.Fax = Me.Fax.Text
wsParams.EMail = Me.EMail.Text
wsParams.Website = Me.Website.Text

wsParams.ShippingFirstName = Me.ShippingFirstName.Text
wsParams.ShippingLastName = Me.ShippingLastName.Text
wsParams.ShippingCompany = Me.ShippingCompany.Text
wsParams.ShippingAddress1 = Me.ShippingAddress1.Text
wsParams.ShippingAddress2 = Me.ShippingAddress2.Text
wsParams.ShippingCity = Me.ShippingCity.Text
wsParams.ShippingState = Me.ShippingState.Text
wsParams.ShippingZip = Me.ShippingZip.Text
wsParams.ShippingCountry = Me.ShippingCountry.Text
wsParams.ShippingEmail = Me.ShippingEmail.Text

wsParams.ProcessorID = Me.ProcessorID.Text
wsParams.Descriptor = Me.Descriptor.Text
wsParams.DescriptorPhone = Me.DescriptorPhone.Text
End If


wsResponse = ws.ProcessTransaction(wsParams)

MSG.Text = "STATUS_CODE: " & wsResponse.STATUS_CODE & "
"
MSG.Text += "STATUS_MSG: " & wsResponse.STATUS_MSG & "
"
MSG.Text += "TRANS_ID: " & wsResponse.TRANS_ID & "
"
MSG.Text += "AUTH_CODE: " & wsResponse.AUTH_CODE & "
"
MSG.Text += "AVS_CODE: " & wsResponse.AVS_CODE & "
"
MSG.Text += "AVS_MSG: " & wsResponse.AVS_MSG & "
"
MSG.Text += "CVV2_CODE: " & wsResponse.CVV2_CODE & "
"
MSG.Text += "CVV2_MSG: " & wsResponse.CVV2_MSG & "
"
MSG.Text += "ORDERID: " & wsResponse.ORDERID & "
"
MSG.Text += "CUSTOMER_VAULT_ID: " & wsResponse.CUSTOMER_VAULT_ID & "
"
MSG.Text += "FULLRESPONSE: " & wsResponse.FULLRESPONSE & "
"
MSG.Text += "POSTSTRING: " & wsResponse.POSTSTRING & "
"

If wsResponse.STATUS_CODE = "1" Then
MSG.Text = "SUCCESS!
" & MSG.Text
Else
If wsResponse.STATUS_CODE = "2" Then
MSG.Text = "DECLINE
" & MSG.Text
Else
MSG.Text = "ERROR
" & MSG.Text
End If
End If



End Sub
End Class


If you need any assistance with payment processing integration with your .NET system, we are here to help!

Download ASP.NET / VB.NET credit card and ACH (e-check) integration examples.

The biggest advantage of our gateway comes from power that it puts in the hands of your developers. Easily integrate with your application and take advantage of features to enhance your system.

We invite you to a live demo and the opportunity to build a partnership. Our promise to partners is, through innovation, today's products will be relentlessly enhanced into tomorrow's solutions.

1921-A Rohlwing Road
Rolling Meadows IL 60008-4800
P) 866-513-1547
F) 866-513-1548
info@transaxgateway.com