private Fusebill.ApiWrapper.Dto.Post.Payment PostPayment(CreditCard credit, RegistrationVM session) { var postPayment = new Fusebill.ApiWrapper.Dto.Post.Payment(); postPayment.Amount = session.ActivatedCustomer.InvoicePreview.Total; postPayment.CustomerId = session.ActivatedCustomer.Id; postPayment.Source = "Manual"; postPayment.PaymentMethodType = "CreditCard"; postPayment.PaymentMethodTypeId = credit.Id; return(postPayment); }
public ActionResult CreatePayment() { var postPayment = new Fusebill.ApiWrapper.Dto.Post.Payment(); postPayment.CustomerId = Convert.ToInt64(ConfigurationManager.AppSettings["DemoCustomerIds"].Split(',')[2]); postPayment.Amount = 30; postPayment.Source = "Manual"; postPayment.Reference = "Reference for payment"; postPayment.PaymentMethodType = "Cash"; var returnedPayment = ApiClient.PostPayment(postPayment); return Json(returnedPayment.Id); }
public ActionResult CreatePayment() { var postPayment = new Fusebill.ApiWrapper.Dto.Post.Payment(); postPayment.CustomerId = Convert.ToInt64(ConfigurationManager.AppSettings["DemoCustomerIds"].Split(',')[2]); postPayment.Amount = 30; postPayment.Source = "Manual"; postPayment.Reference = "Reference for payment"; postPayment.PaymentMethodType = "Cash"; var returnedPayment = ApiClient.PostPayment(postPayment); return(Json(returnedPayment.Id)); }
private Fusebill.ApiWrapper.Dto.Post.Payment PostPayment(CreditCard credit, RegistrationVM session) { var postPayment = new Fusebill.ApiWrapper.Dto.Post.Payment(); postPayment.Amount = session.ActivatedCustomer.InvoicePreview.Total; postPayment.CustomerId = session.ActivatedCustomer.Id; postPayment.Source = "Manual"; postPayment.PaymentMethodType = "CreditCard"; postPayment.PaymentMethodTypeId = credit.Id; return postPayment; }
public Payment PostPayment(Fusebill.ApiWrapper.Dto.Post.Payment payment) { var url = RestUriBuilder.BuildUri("payments"); return(PostEntity <Fusebill.ApiWrapper.Dto.Post.Payment, Payment>(url, payment)); }