moving to stripe 1.9.1
parent
a36ff38745
commit
53178d80ce
|
@ -85,6 +85,15 @@ except Exception, e:
|
|||
|
||||
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
|
||||
|
||||
TEST_CARDS = (
|
||||
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue