Last active
June 19, 2017 22:02
-
-
Save wehub/c8df4030a29a587e3964e166f738152b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WePay Python SDK - http://git.io/v7Y1jA | |
| from wepay import WePay | |
| # application settings | |
| account_id = 123456789 # your app's account_id | |
| access_token = 'STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20' # your app's access_token | |
| production = False | |
| checkout_id = 7734724523235 | |
| # set production to True for live environments | |
| wepay = WePay(production, access_token) | |
| # create the checkout | |
| response = wepay.call('/checkout', { | |
| 'checkout_id': 7734724523235 | |
| }) | |
| # display the response | |
| print response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment