Permalink
Browse files

1.5.0 release

  • Loading branch information...
0 parents commit 61a43543c1ebae884a4f0a72c87008977749c438 @gdb gdb committed May 26, 2011
Showing with 615 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +21 −0 LICENSE
  3. +15 −0 README.rdoc
  4. +5 −0 example.py
  5. +15 −0 setup.py
  6. +484 −0 stripe/__init__.py
  7. +72 −0 test/test_stripe.py
@@ -0,0 +1,3 @@
+/build
+/dist
+MANIFEST
21 LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2010-2011 Stripe (http://stripe.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
@@ -0,0 +1,15 @@
+= Stripe Python bindings
+
+== Installation
+
+You don't need this source code unless you want to modify the package. If you just want to use the Stripe Python bindings, you should run:
+
+ sudo easy_install stripe
+
+To install from this source code, run:
+
+ python setup.py install
+
+= Documentation
+
+Please see http://stripe.com/api for the most up-to-date documentation.
@@ -0,0 +1,5 @@
+import stripe
+stripe.api_key = '26OjYWkUnwDegILl9ZNVbefRjRboRSio'
+print "Attempting charge..."
+resp = stripe.Charge.execute(amount=200, currency='usd', card={'number' : '4242424242424242', 'exp_month' : 10, 'exp_year' : 2014}, mnemonic='customer@gmail.com')
+print 'Success: %r' % (resp, )
@@ -0,0 +1,15 @@
+from distutils.core import setup
+import os, sys
+
+path, script = os.path.split(sys.argv[0])
+os.chdir(os.path.abspath(path))
+
+setup(name='stripe',
+ version='1.5.0',
+ description='Stripe python bindings',
+ author='Stripe',
+ author_email='support@stripe.com',
+ url='https://stripe.com/',
+ packages=['stripe'],
+ requires=['json', 'pycurl']
+)
Oops, something went wrong.

0 comments on commit 61a4354

Please sign in to comment.