Esempio n. 1
0
        public async Task <InitiatePayoutResult> InitiatePayout(PayoutRequestData data)
        {
            Employee employeeData = await this.LoadEmployeeData(data);

            if (employeeData == null)
            {
                return(null);
            }

            PayoutRequest request = await this.CreateRequest(employeeData);

            PayuPayoutResult payuResult = await this.SendPayoutRequest(request);

            return(null);
        }
Esempio n. 2
0
 public PayuPayoutRequest(PayoutRequest request, string merchCode, string secretKey)
 {
     this._dict.Add(amount, request.PayoutAmount.ToString(CultureInfo.InvariantCulture));
     this._dict.Add(ccnumber, request.EmployeeData.CardNumber);
     //this._dict.Add(clientAddress, );
     //this._dict.Add(clientCity, );
     this._dict.Add(clientCountryCode, "RU");
     this._dict.Add(clientEmail, request.EmployeeData.Email);
     this._dict.Add(clientFirstName, request.EmployeeData.FirstName);
     this._dict.Add(clientLastName, request.EmployeeData.LastName);
     //this._dict.Add(clientPostalCode, );
     this._dict.Add(currency, "RUB");
     this._dict.Add(desc, "Выплата подаренных чаевых в соответствии договором-офертой tips24.ru/3. Выплата произведена на основании агентского отчёта " + request.Id + " от " + request.CreateDateTime.ToString("dd.MM.yyyy"));
     this._dict.Add(merchantCode, merchCode);
     this._dict.Add(outerId, request.Id.ToString());
     this._dict.Add(senderEmail, "*****@*****.**");
     this._dict.Add(senderFirstName, "ООО \"Чаевые-24\"");
     this._dict.Add(senderLastName, "ООО \"Чаевые-24\"");
     this._dict.Add(senderPhone, "9272441678");
     this._dict.Add(timestamp, DateTimeOffset.Now.ToUnixTimeSeconds().ToString());
 }
Esempio n. 3
0
 private async Task <PayuPayoutResult> SendPayoutRequest(PayoutRequest request)
 {
     return(null);
 }