Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 5
0
        public Payment PostPayment(Fusebill.ApiWrapper.Dto.Post.Payment payment)
        {
            var url = RestUriBuilder.BuildUri("payments");

            return(PostEntity <Fusebill.ApiWrapper.Dto.Post.Payment, Payment>(url, payment));
        }