Got Stripe up and running quickly and setup my form to include Billing address. But can't seem to find any way to store it in stripe, using the .net sdk.
If I go to stripe dashboard I can manually put in the billing address for a customer.
My working code looks like the following:
var stripeCustomerCreateOptions = new StripeCustomerCreateOptions
{
Email = value.StripeEmail,
SourceToken = value.StripeToken,
};
var stripeCustomerService = new StripeCustomerService();
StripeCustomer customer = stripeCustomerService.Create(stripeCustomerCreateOptions);
var stripeSubscriptionService = new StripeSubscriptionService();
var subscription = stripeSubscriptionService.Create(customer.Id, _stripePlanId);
I would expect there was an option on the StripeCustomerCreateOptions
to include billing information.
I get the billing information in form post request.
- Edit
After looking further into it. I can see that the Credit card has the information about address. But that is not desired.
I would like the receipt to have the billing address.
The only way I have gotten that to work is to update the customer manually from the dashboard.