VivaWalletPOS.newSale Method
The transaction is not completed by this function. It merely transmits the transaction to the POS Terminal so that the consumer can use it to make a payment. To check if the transaction is completed or not, use the checkSession method.
Public Function newSale( _
ByVal sale As Transaction _
) As String
This language is not supported or no code example is available.
Parameters
- sale
- Transaction
The sale that is going to be send to the POS Terminal, type of Transaction
Return Value
string
"200 - The transaction was sent to the POS" or
"999 - The transaction failed to be sent to the POS"
var vw = new VivaWalletPOS("Arbitrans User", "Arbitrans Key", "ClientID", "ClientSecret", false); Transaction tra = vw.NewTransaction; tra.sessionID = "my custom and unique Session ID"; tra.terminalID = "123456"; tra.cashRegisterID = "transaction without cash register"; tra.amount = 10.0d; tra.currencyCode = "978"; // The ISO Code for EUR tra.merchantReference = "payment for invoice 123456"; tra.customerTrns = "payment for invoice 123456"; tra.preauth = false; tra.maxInstalments = 0; tra.tipAmount = 0.0d;
This language is not supported or no code example is available.
Dim vw As New VivaWalletPOS("Arbitrans User", "Arbitrans Key", "ClientID", "ClientSecret", False) Dim tra As Transaction = vw.NewTransaction tra.sessionID = "my custom and unique Session ID" tra.terminalID = "123456" tra.cashRegisterID = "transaction without cash register" tra.amount = 10.0 tra.currencyCode = "978" 'The ISO Code for EUR tra.merchantReference = "payment for invoice 123456" tra.customerTrns = "payment for invoice 123456" tra.preauth = Falsetra.maxInstalments = 0 tra.tipAmount = 0.0 Dim result As String = vw.newSale(tra)
This language is not supported or no code example is available.