コード例 #1
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);
        }