ProvOrian Class
Read more about using a third-party provider here.
Name | Description | |
---|---|---|
ProvOrian(string, string, string, string, bool) | It creates a new instance of the ProvOrian. |
Name | Description | |
---|---|---|
SendInvoice(invoice, orianData, appInfo, int) |
Send the invoice to Orian provider. Provider returns a dictionary(Of String, String) having any results (success or errors). |
|
completePOSTransaction(posComplete) |
Use this method to complete the invoice. This method should only be used when the invoice has at least one POS transaction (paymentMethod.type = 7). IMPORTANT: The invoice will not be issued if this method is not called after the POS transaction has been effectively completed. If the POS transaction fails or cancels for any reason, you don't need to take any action. |
|
getPOSSignature(posTransaction) |
Use this method to get the provider's signature for making a deferred POS payment. Deferred POS payments can only be done if the invoice paymentMethod.type = 5. |
|
getQRImage(int) |
Returns an object-type image, ready to be embedded on your invoice document. In the Trial Version, this function returns a QR leading to the url "https://www.arbitrans.gr". |
|
getQRUrl() | Returns the validation URL of the Invoicing Provider. Use this URL to generate a QR Code on your own, or use the getQRImage method to export an object-type image of the QR. | |
resendB2G(correctB2G) |
Use this method to resend a previously submitted B2G invoice to myDATA. Only use this method if ΚΕΔ returns the "SoftReject" status, which indicates that your invoice is generally correct but requires some field changes. |
Name | Description | |
---|---|---|
appInfo |
This structure contains all the necessary fields to report ORIAN, the application that uses this library. If you don't want to report your software, leave these fields blank. |
|
correctB2G |
To resend an invoice to PEPPOL, use this structure with resendB2G. From the containg fields, only those that need to be changed must have values, except the mark which is a mandatory field. |
|
posComplete |
This structure contains all of ORIAN's required fields in order to complete a POS transaction. This structure can be used in the completePOSPayment method. |
|
posTransaction |
To manually get the provider's POS signature, the POS transaction structure is required. The structure is applied to getPOSSignature(posTransaction) Use this structure only for deferred payments applied on credit (myDATATools.getPaymentMethods = 5) invoices completed using POS. |