public void GetSpecificPayment() { var nordeaApiManager = new NordeaAPIv3Manager(); var payments = nordeaApiManager.GetPayments(); if (payments.Count == 0) { Creditor afsender = new Creditor { Account = new Account { Currency = "DKK", Value = "20301544117544", Type = "BBAN_DK" }, Message = "Test2" }; Debtor modtager = new Debtor { Account = new Account { Currency = "DKK", Value = "20301544118028", Type = "BBAN_DK" }, Message = "Test" }; nordeaApiManager.InitiatePayment(afsender, modtager, 10.0M, "DKK"); } payments = nordeaApiManager.GetPayments(); Assert.IsTrue(payments.Count > 0); if (payments.Count > 0) { var payment = payments.ElementAt(0); var id = payment.Id; var _payment = nordeaApiManager.GetPayment(id); Assert.IsTrue(PaymentEqual(payment, _payment)); } }
public ActionResult PaymentStatus(string id) { var apiManager = new NordeaAPIv3Manager(); var apiResult = apiManager.GetPayment(id); SetContextCulture(); return(View(apiResult)); }