Ejemplo n.º 1
0
        //MarkPaymentAsApplied
        public async Task <dynamic> MarkPaymentAsApplied(PaymentDetailModel model)
        {
            Response      response = new Response();
            SecurityToken token    = await GetSecurityToken();

            var client = new PaymentGateway.IeBizServiceClient();
            var result = await client.MarkPaymentAsAppliedAsync(token, model.invoiceNumber, model.paymentInternalId);

            return(result);
        }
Ejemplo n.º 2
0
        //Delete PaymentMethod Profile
        public async Task <dynamic> DeletePaymentMethodProfile(PaymentDetailModel model)
        {
            Response      response = new Response();
            SecurityToken token    = await GetSecurityToken();

            var client = new PaymentGateway.IeBizServiceClient();
            var result = await client.DeleteCustomerPaymentMethodProfileAsync(token, model.customerToken, model.paymentMethod);

            return(result);
        }
Ejemplo n.º 3
0
        //ReceivedPayment
        public async Task <dynamic> ReceivedPayment(PaymentDetailModel model)
        {
            Response      response = new Response();
            SecurityToken token    = await GetSecurityToken();

            var client = new PaymentGateway.IeBizServiceClient();
            var result = await client.GetPaymentsAsync(token, model.customerId, model.customerInternalId, model.fromDateTime, model.toDateTime, model.start, model.limit, model.sort);

            return(result);
        }
Ejemplo n.º 4
0
        //Update Customer Payment Method Profile
        public async Task <dynamic> UpdatePaymentMethodProfile(PaymentDetailModel model)
        {
            Response      response = new Response();
            SecurityToken token    = await GetSecurityToken();

            var client = new PaymentGateway.IeBizServiceClient();

            model.customerToken = "11166583";
            string CCnum             = "4000100011112224";
            PaymentMethodProfile obj = new PaymentMethodProfile();

            obj.MethodID = "1205";
            //obj.CardNumber = "XXXXXX" + CCnum.Substring(6, (CCnum.Length - 6));
            obj.CardNumber             = "4000100011112224";
            obj.CardExpiration         = "1225";
            obj.AvsStreet              = "20 Pacifica";
            obj.AvsZip                 = "92618";
            obj.MethodName             = "New Name";
            obj.AccountHolderName      = "Tim Smith";
            model.paymentMethodProfile = obj;
            var result = await client.UpdateCustomerPaymentMethodProfileAsync(token, model.customerToken, model.paymentMethodProfile);

            return(result);
        }