ProvIlyda.getPOSSignature (posTransaction) Method

Get the POS signature to create a new POS Sale. 
The results of this method will be used at VivaWalletPOS.newSale.
Public Function getPOSSignature( _ 
ByVal posTransaction As posTransaction
) As Dictionary(Of String, String)
This language is not supported or no code example is available.
public Dictionary<string, string> getPOSSignature( 
posTransaction posTransaction 
)
This language is not supported or no code example is available.

Parameters

posTransaction
posTransaction

The raw data of the transaction

Return Value

Dictionary<string, string>

Returns a dictionary containing the necessary data that will be used in the Transaction object. 
Specifically, the fields Transaction.aadeProviderSignatureData (dictionary key signedContent) and Transaction.aadeProviderSignature (dictionary key signature) will be filled.

Example
 
 var il = new ProvIlyda("ilydaUser", "ilydaPassword", "arbUser", "arbKey", false);
 
 // The "inv" is the invoice object you previously created.
 
 ProvIlyda.posTransaction pos = newPosTransaction();
 pos.amount = 124;
 pos.netValue = 100;
 pos.vatAmount = 24;
 pos.grossValue = 124;
 pos.issuerVatNumber = inv.issuer.vatNumber;
 pos.series = inv.elements.series;
 pos.invoiceType = inv.elements.invoiceType;
 pos.issuerBranch = inv.issuer.branch;
 pos.terminalId = "1111111111";
 
 Dictionary<string, string> posSign = il.getPOSSignature(pos);
 					
This language is not supported or no code example is available.
 Dim il As ProvIlyda = New ProvIlyda("ilydaUser", "ilydaPassword", "arbUser", "arbKey", False)
 
 'The "inv" is the invoice object you previously created.
 
 Dim pos As ProvIlyda.posTransaction = newPosTransaction()
 pos.amount = 124
 pos.netValue = 100
 pos.vatAmount = 24
 pos.grossValue = 124
 pos.issuerVatNumber = inv.issuer.vatNumber
 pos.series = inv.elements.series
 pos.invoiceType = inv.elements.invoiceType
 pos.issuerBranch = inv.issuer.branch
 pos.terminalId = "1111111111"
 
 Dim posSign As Dictionary(Of String, String) = il.getPOSSignature(pos)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition