title: Uncaught ReferenceError: Braintree is not defined
body: <p>I am using django framework 1.6.2, eclipse 3.8.1, python 2.7.5 </p>
  
  <p>i have followed <a href="https://www.braintreepayments.com/docs/python/guide/getting_paid" rel="nofollow">This link</a> as my sample test program, unfortunately i am getting issue but its working perfect with out using eclipse. please help out, your help is really appreciable </p>
  
  <p><strong>Client side problem:</strong></p>
  
  <p><em>The code is</em></p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Braintree Credit Card Transaction Form&lt;/h1&gt;
      &lt;div&gt;
        &lt;form action="/create_transaction" method="POST" id="braintree-payment-form"&gt;
          &lt;p&gt;
            &lt;label&gt;Card Number&lt;/label&gt;
            &lt;input type="text" size="20" autocomplete="off" data-encrypted-name="number" /&gt;
          &lt;/p&gt;
          &lt;p&gt;
            &lt;label&gt;CVV&lt;/label&gt;
            &lt;input type="text" size="4" autocomplete="off" data-encrypted-name="cvv" /&gt;
          &lt;/p&gt;
          &lt;p&gt;
            &lt;label&gt;Expiration (MM/YYYY)&lt;/label&gt;
            &lt;input type="text" size="2" data-encrypted-name="month" /&gt; / &lt;input type="text" size="4" data-encrypted-name="year" /&gt;
          &lt;/p&gt;
          &lt;input type="submit" id="submit" /&gt;
        &lt;/form&gt;
      &lt;/div&gt;
      &lt;script src="https://js.braintreegateway.com/v1/braintree.js"&gt;&lt;/script&gt;
      &lt;script&gt;
        var braintree = Braintree.create("YourClientSideEncryptionKey");
        braintree.onSubmitEncryptForm('braintree-payment-form');
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><em>The Bug is</em></p>
  
  <pre><code>Uncaught ReferenceError: Braintree is not defined 
  </code></pre>
  
  <p><strong>Server side problem:</strong></p>
  
  <p><em>The code is</em></p>
  
  <pre><code>import braintree
  
  braintree.Configuration.configure(braintree.Environment.Sandbox,
                                merchant_id="use_your_merchant_id",
                                public_key="use_your_public_key",
                                private_key="use_your_private_key")
  </code></pre>
  
  <p><em>Bug is</em></p>
  
  <pre><code>Undefined variable from import:Sandbox
  </code></pre>