title: Passing sever side zip/postcode to Stripe checkout
body: <p>I am trying set up Stripe checkout so I can pass my server side customer zip/postcode to the Stripe checkout. It seems like it should be very simple but I cannot get it to work!</p>
  
  <p>At it's simplest, the code I am using is:</p>
  
  <pre><code>&lt;form action="charge.php" method="POST"&gt;
  &lt;script
    src="https://checkout.stripe.com/v2/checkout.js" class="stripe-button"
    data-key="pk_test_redacted"
    data-amount="2000"
    data-name="Demo Site"
    data-description="2 widgets (£20.00)"
    data-currency="gbp"
    data-address_zip="NG15 6UR"&gt;
  &lt;/script&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>the transaction works fine but it does not pass the zip/postcode so that it can be AVS checked.</p>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>So apparently you cannot pass address information using checkout.js - you can only get the form to require the address from the customer when they put their card details in using</p>
  
  <pre><code>data-address="true2"
  </code></pre>
  
  <p>As far as I can tell, this means I can either hassle the customer by getting them to add their address details when I already have them!</p>
  
  <p>or I have to use stripe.js which means I have build my own form, make it look pretty, validate it etc. Not a massive thing but, when there is a form there that does everything I need but accept address form fields passed at form creation, it is a little annoying :-(</p>
  
  <p>If anyone knows otherwise I would love to hear it but this info came from the #stripe irc channel so I think it is probably correct. </p>