コード例 #1
0
		public static StripeRecipientUpdateOptions Valid()
		{
			var stripeRecipientUpdateOptions = new StripeRecipientUpdateOptions()
			{
				Name = "Billy Madison",
				TaxId = "000000000",
				Email = "*****@*****.**",
				Description = "Conditioner is better, it makes the hair silky and smooth"
			};

			return stripeRecipientUpdateOptions;
		}
コード例 #2
0
        public static StripeRecipientUpdateOptions Valid()
        {
            var stripeRecipientUpdateOptions = new StripeRecipientUpdateOptions()
            {
                Name        = "Billy Madison",
                TaxId       = "000000000",
                Email       = "*****@*****.**",
                Description = "Conditioner is better, it makes the hair silky and smooth"
            };

            return(stripeRecipientUpdateOptions);
        }
コード例 #3
0
        public static StripeRecipientUpdateOptions Valid()
        {
            var stripeRecipientUpdateOptions = new StripeRecipientUpdateOptions()
            {
                Name        = "Billy Madison",
                TaxId       = "000000000",
                Email       = "*****@*****.**",
                Description = "Conditioner is better, it makes the hair silky and smooth",
                Metadata    = new Dictionary <string, string>
                {
                    { "A", "Value-A" },
                    { "B", "Value-B" },
                    { "C", "Value-C" }
                }
            };

            return(stripeRecipientUpdateOptions);
        }
コード例 #4
0
        public static StripeRecipientUpdateOptions Valid()
        {
            var stripeRecipientUpdateOptions = new StripeRecipientUpdateOptions()
            {
                Name = "Billy Madison",
                TaxId = "000000000",
                Email = "*****@*****.**",
                Description = "Conditioner is better, it makes the hair silky and smooth",
                Metadata = new Dictionary<string, string>
                {
                    { "A", "Value-A" },
                    { "B", "Value-B" },
                    { "C", "Value-C" }
                }
            };

            return stripeRecipientUpdateOptions;
        }
コード例 #5
0
        public string UpdateRecipient(string recipId, string email, string name, string description, string token)
        {
            var recipient = new StripeRecipientUpdateOptions
            {
                Email       = email,
                Name        = name,
                Description = description
            };

            recipient.BankAccount = new StripeBankAccountOptions
            {
                TokenId = token
            };
            var service      = new StripeRecipientService(Constants.StripeSecretKey);
            var newRecipient = service.Update(recipId, recipient);

            return(newRecipient.Id);
        }