SendPaymentsMethod.SendPayment Method

With this method, you can send a payment to myDATA.
Public Function SendPayment( _ 
ByVal invoiceMark As String, _ 
ByVal payments As List(Of paymentMethod), _ 
Optional ByVal GreekErrors As Boolean = False _ 
) As String
This language is not supported or no code example is available.
public string SendPayment( 
string invoiceMark
List<paymentMethod> payments
bool GreekErrors = False 
)
This language is not supported or no code example is available.

Parameters

invoiceMark
string

MARK of the invoice you want to send Payment

payments
List<paymentMethod>

A list of paymentMethod.

GreekErrors
bool

Determines if the error will be returned in Greek or not.

Return Value

string

Classification MARK or Validation Errors

Remarks
 
You can export the Invoice Data and send them to mydata@arbitrans.gr, so we can check your issue, using the method ExportDataForValidation
This method exports your data in encoded format, according to GDPR, ensuring maximum security to any sensitive or personal data.
Example
 
 // ---------------- Send Payment ----------------
 var spm = new SendPaymentsMethod("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
 var payments = new List<SendPaymentsMethod.paymentMethod>(); // Initialize a new payment list
 
 SendPaymentsMethod.paymentMethod payment = spm.newPayment; // Initialize a payment object
 payment.type = 7; // Set the Payment Type
 payment.amount = 111.6d; // Set the Payment Amount
 payment.ECRToken.SigningAuthor = "999999"; // Set the SingingAuthor of the ECRToken
 payment.ECRToken.SessionNumber = "123456"; // Set the SingingAuthor of the SessionNumber
 payments.Add(payment); // Add the Payment to the list
 
 // Sending Payment. If everything's fine, you'll get back the Payment MARK.
 // Otherwise, you'll get back the errors so you can handle them properly.
 string Result = spm.SendPayment("400001904653127", payments);
 					
This language is not supported or no code example is available.
 ' ---------------- Send Payment ----------------
 Dim spm As SendPaymentsMethod = New SendPaymentsMethod("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", False)
 Dim payments As New List(Of SendPaymentsMethod.paymentMethod) 'Initialize a new payment list
 
 Dim payment As SendPaymentsMethod.paymentMethod = spm.newPayment 'Initialize a payment object
 payment.type = 7 'Set the Payment Type
 payment.amount = 111.6 'Set the Payment Amount
 payment.ECRToken.SigningAuthor = "999999" 'Set the SingingAuthor of the ECRToken
 payment.ECRToken.SessionNumber = "123456" 'Set the SingingAuthor of the SessionNumber
 payments.Add(payment) 'Add the Payment to the list
 
 ' Sending Payment. If everything's fine, you'll get back the Payment MARK.
 ' Otherwise, you'll get back the errors so you can handle them properly.
 Dim Result As String = spm.SendPayment("400001904653127", payments)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition