moving to stripe 1.9.1

pull/1/head
Raymond Yee 2013-06-21 15:14:51 -07:00
parent a36ff38745
commit 53178d80ce
2 changed files with 14 additions and 4 deletions

View File

@ -83,7 +83,16 @@ except Exception, e:
# set default stripe api_key to that of unglue.it
stripe.api_key = STRIPE_SK
stripe.api_key = STRIPE_SK
# maybe we should be able to set this in django.settings...
# to start with, let's try hard-coding the api_version
# https://stripe.com/docs/upgrades?since=2012-07-09#api-changelog
#API_VERSION = '2012-07-09'
API_VERSION = '2013-02-13'
stripe.api_version = API_VERSION
# https://stripe.com/docs/testing
@ -174,6 +183,7 @@ def _isListableAPIResource(x):
except:
return False
class StripeClient(object):
def __init__(self, api_key=STRIPE_SK):
self.api_key = api_key
@ -377,8 +387,8 @@ class StripeErrorTest(TestCase):
charge1 = sc.create_charge(10, 'usd', card=token2.id)
self.assertEqual(charge1.amount, 1000)
self.assertEqual(charge1.id[:3], "ch_")
# disputed, failure_message, fee, fee_details
self.assertEqual(charge1.disputed,False)
# dispute, failure_message, fee, fee_details
self.assertEqual(charge1.dispute,None)
self.assertEqual(charge1.failure_message,None)
self.assertEqual(charge1.fee,59)
self.assertEqual(charge1.refunded,False)

View File

@ -54,7 +54,7 @@ selenium==2.25.0
six==1.2.0
ssh==1.7.14
stevedore==0.4
stripe==1.7.4
stripe==1.9.1
virtualenv==1.4.9
virtualenvwrapper==3.6
wsgiref==0.1.2