Skip to content

Commit

Permalink
new operations in token and source entities
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Feb 19, 2018
1 parent fe07d0c commit 36ff08e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stripe/source.py
Expand Up @@ -39,6 +39,11 @@

class SourceAPI(object):

def get_source(self, token):
url = self.base_url + "sources/%s" % token
contents = self.get(url)
return contents

def create_card_source(
self,
exp_month,
Expand Down
5 changes: 5 additions & 0 deletions src/stripe/token.py
Expand Up @@ -39,6 +39,11 @@

class TokenAPI(object):

def get_token(self, token):
url = self.base_url + "tokens/%s" % token
contents = self.get(url)
return contents

def create_token(
self,
exp_month,
Expand Down

0 comments on commit 36ff08e

Please sign in to comment.