Beispiel #1
0
        public async Task <JsonResult> Submit(SubmitPaymentPayload submitPaymentPayload)
        {
            Log.Information("POST");

            var paymentRequest = GetPaymentRequest(submitPaymentPayload);

            return(new JsonResult(await _paymentGateway.Submit(paymentRequest)));
        }
Beispiel #2
0
 private PaymentRequest GetPaymentRequest(SubmitPaymentPayload submitPaymentPayload)
 {
     return(new PaymentRequest
     {
         Amount = submitPaymentPayload.Amount,
         Currency = submitPaymentPayload.Currency,
         CreditCard = submitPaymentPayload.CreditCard
     });
 }