public IActionResult Post()
        {
            AydenItem item = new AydenItem
            {
                EncryptedPersonalAndPaymentData = HttpContext.Request.Form["adyen-encrypted-data"],
                Amount   = 5000,
                Currency = "GBP"
            };

            var a = _aydenRepository.Add(item);

            a.RequestPaymentFulfilment();
            _aydenRepository.Update(a);

            return(RedirectToAction("Index", "Summary"));
        }
Beispiel #2
0
 public RequestPaymentCompletedEvent(AydenItem paymentFromUser)
 {
     SettledPayment = paymentFromUser;
 }