Skip to content

withkash/kash_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kash API Python Client

This is the KASH API client for the the Server facing API.

Create a client connected to the test environment: from kash import SecretClient

sk = '<secret key>'
customerId = '<customer id>'
sc = SecretClient(secretKey=sk, test=True)

Create an an authorization for payment:

try:
    authorizationDict = sc.createAuthorization(customerId, '2000')
    authorizationId = authorizationDict['authorization_id']
except Exception as e:
    print e

Clear an authorization:

try:
    sc.removeAuthorization(authorizationId)
except Exception as e:
    print e

Create a transaction:

try:
    authorizationDict = sc.createAuthorization(customerId, '2000')
    authorizationId = authorizationDict['authorization_id']
except Exception as e:
    print e

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages