title: Creating Stripe customer from Stripe Token using .Net client library & Stripe.js
body: <p>I have a screen in my ASP.NET MVC web application in which I ask the user for their credit card information. They type it in.</p>
  
  <p>Adhering to PCI guidelines, I am using Stripe.js to send this credit card information to stripe and get back a stripe token.</p>
  
  <p>I then post this stripe token to my ASP.NET MVC application. In the application, I would like to create a customer. I would <em>not</em> like to charge the customer just now. I simply want to create a customer so I can charge them later using their Stripe <code>customerId</code>.</p>
  
  <p>The documentation <a href="https://github.com/jaymedavis/stripe.net#creating-a-customer" rel="nofollow">provided here</a> makes it look simple. However, the client library that I am using (<code>Stripe</code> NuGet package version 1.12.0) does not offer the <code>StripeCustomerCreateOptions</code> class and many other classes mentioned in that document.</p>
  
  <p>Instead, it has these two methods that help you create a customer:</p>
  
  <pre><code>public StripeObject CreateCustomer(ICreditCard card = null, 
               string coupon = null, 
               string email = null, 
               string description = null, 
               string plan = null, 
               DateTimeOffset? trialEnd = default(DateTimeOffset?));
  
  public StripeObject CreateCustomerToken(string customerId);
  </code></pre>
  
  <p>As you can see, none of the methods are of any help to me. The first one requires the server to pass credit card information, which I am not doing as it is against PCI guidelines.</p>
  
  <p>The second one assumes that you already have a customer and you want a token for the customer to use someplace else.</p>
  
  <p>How do I create a customer from within my ASP.NET MVC application if I already have a credit card token for him that I got from Stripe.js?</p>