VivaWalletPOS.sendAbort Method

This function can be used to abort a transaction before it is finished.
Public Function sendAbort( _ 
ByVal sessionID As String, _ 
ByVal cashRegisterId As String
) As String
This language is not supported or no code example is available.
public string sendAbort( 
string sessionID
string cashRegisterId 
)
This language is not supported or no code example is available.

Parameters

sessionID
string

The unique session identifier. You specified this Transaction.sessionID (or RefundTransaction.sessionID) when you created a new transaction.

cashRegisterId
string

The identification number for the cash register. The cash register identification number should be entered if the invoice is issued by said cash register. 
In the absence of a Cash Register ID, enter "no Cash Register" as the text.

Return Value

string

"200 - Session is aborted" or 
"999 - Session failed to be aborted"

Example
 
 VivaWalletPOS vw = new VivaWalletPOS("Arbitrans User", "Arbitrans Key", "ClientID", "ClientSecret", false);
 string result = vw.sendAbort("my custom session ID", "my cash Register Id");
 					
This language is not supported or no code example is available.
 Dim vw As VivaWalletPOS = New VivaWalletPOS("Arbitrans User", "Arbitrans Key", "ClientID", "ClientSecret", False)
 Dim result As String = vw.sendAbort("my custom session ID", "my cash Register Id")
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition