SecurePayTech.com logo


//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.2032
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

//
// This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.2032.
//
namespace SPT_CS_Example.com.securepaytech.tx {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;


/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="SoapPurchaseBinding", Namespace="http://tx.securepaytech.com")]
public class SoapPurchaseService : System.Web.Services.Protocols.SoapHttpClientProtocol {

/// <remarks/>
public SoapPurchaseService() {
this.Url = "https://tx.securepaytech.com:443/web/SoapPurchase";
}

/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://tx.securepaytech.com", ResponseNamespace="http://tx.securepaytech.com")]
[return: System.Xml.Serialization.SoapElementAttribute("result")]
public TransactionResult purchase(string merchantID, string merchantKey, string orderReference, System.Single amount, string currency, int cardType, string cardNumber, string cardExpiry, string cardHolderName) {
object[] results = this.Invoke("purchase", new object[] {
merchantID,
merchantKey,
orderReference,
amount,
currency,
cardType,
cardNumber,
cardExpiry,
cardHolderName});
return ((TransactionResult)(results[0]));
}

/// <remarks/>
public System.IAsyncResult Beginpurchase(string merchantID, string merchantKey, string orderReference, System.Single amount, string currency, int cardType, string cardNumber, string cardExpiry, string cardHolderName, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("purchase", new object[] {
merchantID,
merchantKey,
orderReference,
amount,
currency,
cardType,
cardNumber,
cardExpiry,
cardHolderName}, callback, asyncState);
}

/// <remarks/>
public TransactionResult Endpurchase(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((TransactionResult)(results[0]));
}
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("TransactionResult", "http://tx.securepaytech.com/types")]
public class TransactionResult {

/// <remarks/>
public System.DateTime dateTime;

/// <remarks/>
public string authorizationID;

/// <remarks/>
public string batchNo;

/// <remarks/>
public string failReason;

/// <remarks/>
public string merchTxnRef;

/// <remarks/>
public string receiptNo;

/// <remarks/>
public int resultCode;

/// <remarks/>
public string transactionNo;
}
}