Пример #1
0
 public async Task <ProcessPaymentResult> ProcessPaymentAsync(string orderId, string paymentMethodId, data.BankCardInfo cardInfo)
 {
     return(await _orderClient.ProcessPayment(orderId, paymentMethodId, cardInfo));
 }
Пример #2
0
 public Task<ProcessPaymentResult> ProcessPayment(string orderId, string paymentMethodId, BankCardInfo cardInfo)
 {
     return SendAsync<BankCardInfo, ProcessPaymentResult>(
         CreateRequestUri(string.Format(RelativePaths.ProcessPayment, orderId, paymentMethodId)),
         HttpMethod.Post, cardInfo);
 }