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>When you pip installed stripe, it installed it in your local system.  But GAE does not have that package, so you cannot simply import it in production.  You need to download the package, and add it inside your app.  For example, in a "libs" directory.  Then, it will upload with the rest of your app when you deploy, and be available to the app.  Then, you import it like this:</p>

<pre><code>from libs import stripe
</code></pre>

<p>Assuming your app structure looks like this:</p>

<pre><code>- myapp
  - app.yaml
  - otherstuff.py
  - libs
    - stripe
</code></pre>

python google-app-engine stripe-payments