getTransaction

Parent Previous Next

getTransaction

Retrieves all details of a specified transaction.

 

Description

Use this method to view all of the details relating to a particular transaction including transaction status, type, and gateway response.

To specify the transaction you would like to view, you must retrieve it using the reference number (RefNum) assigned to the transaction by the gateway. The RefNum is assigned by the gateway and returned when a transaction is processed. To find a missing RefNum, use the searchTransactions method.

 

 

Syntax

TransactionObject getTransaction ( ueSecurityToken Token, integer RefNum )

Arguments

 

Type

Name

Description

ueSecurityToken

Token

Merchant security token: used to identify merchant and validate transaction.

integer

RefNum

Transaction Reference number assigned by the gateway.

 

Return Value

TransactionObject

Returns all information for a specified transaction, including the transaction status, gateway response, date and time of transaction, credit card specific data, transaction amount, cardholder name and address, and all other transaction details.

 

Examples

 

PHP

 

<?php

try {

 $RefNum=1009411;

 $res=$client->getTransaction($token, $RefNum);  

 print_r($res);

}

catch (SoapFault $e){

 die("getTransaction failed :" .$e->getMessage());

}

?>

 

Java

 

try {

 //Set RefNum to the Reference Number of transaction you

 //want to retrieve.

 BigInteger RefNum = new BigInteger();

 TransactionObject Tran = new TransactionObject();

 Tran = client.getTransaction(token, refnum);

 System.out.println(Tran.getResponse);

} catch (Exception e) {

   System.out.println("Soap Exception: " + e.getMessage());

}

 

 

.NET VB

 

Dim client As eBizCharge.eBizChargeService = New eBizCharge.eBizChargeService

       Dim token As eBizCharge.ueSecurityToken

       token = Me.CreateToken("714SSUxv1uohng2XkMJ7kLpETsu58G66", "1234")

       Dim refnum As Integer

       refnum = 46993430

       Dim response As eBizCharge.TransactionObject

       response = client.getTransaction(token, refnum)

       MsgBox("Transaction Type: " & response.TransactionType)

 

 

.NET C#

 

 

           string refnum;

           refnum = "46973526";

           eBizCharge.TransactionObject tran = new eBizCharge.TransactionObject();

           try

           {

               tran = client.getTransaction(token, refnum);

               MessageBox.Show(string.Concat("Transaction RefNum: ",

                           tran.Response.RefNum));

           }

           catch (Exception err)

           {

               MessageBox.Show(err.Message);

           }

 

 

XML

 

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:ns1="urn:eBizCharge" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<ns1:getTransaction>

<Token xsi:type="ns1:ueSecurityToken">

<ClientIP xsi:type="xsd:string">192.168.0.1</ClientIP>

<PinHash xsi:type="ns1:ueHash">

<HashValue xsi:type="xsd:string">11ac55b0a0b59f8f028dbf85bc32266fa973dd0e</HashValue>

<Seed xsi:type="xsd:string">12678150211876663375</Seed>

<Type xsi:type="xsd:string">sha1</Type>

</PinHash>

<SourceKey xsi:type="xsd:string">HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</SourceKey>

</Token>

<RefNum xsi:type="xsd:integer">1118428</RefNum>

</ns1:getTransaction>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>