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; }
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); }
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); }
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; }
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); }