python google app engine stripe integration
<p>I am working on a project in which i want to integrate stripe for payments. I am following their documentation to integrate it in python <a href="https://stripe.com/docs/charges" rel="nofollow">Stripe Documentation</a>. In documentation they downloaded the stripe library to use it. The code to download it was:</p>

<pre><code>pip install --upgrade stripe
</code></pre>

<p>I followed the same steps. But i am getting this error. When i try to import it in my project.</p>

<pre><code>import stripe
ImportError: No module named stripe
</code></pre>

<p>The proper way to install a 3rd party library into your GAE application is described in <a href="https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27?hl=en#installing_a_library" rel="nofollow">Installing a library</a>:</p>

<blockquote>
  <p>The easiest way to manage this is with a ./lib directory:</p>
  
  <ol>
  <li><p>Use pip to install the library and the vendor module to enable importing packages from the third-party library directory.</p></li>
  <li><p>Create a directory named lib in your application root directory:</p>

<pre><code>mkdir lib
</code></pre></li>
  <li><p>To tell your app how to find libraries in this directory, create or modify a file named appengine_config.py in the root of your
  project, then add these lines:</p>

<pre><code>from google.appengine.ext import vendor

# Add any libraries installed in the "lib" folder.
vendor.add('lib')
</code></pre></li>
  <li><p>Use pip with the -t lib flag to install libraries in this directory:</p>

<pre><code>pip install -t lib gcloud
</code></pre></li>
  </ol>
</blockquote>

<p><strong>Notes</strong>: </p>

<ul>
<li><p>When going through the mentioned doc page pay attention as it also contains instructions for requesting and using GAE-provided <em>built-in</em> libraries - different than those for <em>installed/vendored-in</em> libraries.</p></li>
<li><p>if your app is a multi-module one you'll need an <code>appengine_config.py</code> for each module using the library at step#3, located beside the module's <code>.yaml</code> file. It can be symlinked for DRY reasons if you prefer (see <a href="http://stackoverflow.com/a/34291789/4495081">http://stackoverflow.com/a/34291789/4495081</a>).</p></li>
<li><p>step #4's goal is to just bring the content of the stripe library in a subdirectory of the <code>lib</code> dir. You can do that manually if the pip way fails for whatever reason.</p></li>
</ul>

python google-app-engine stripe-payments