import hyperwallet import sys username = sys.argv[1] password = sys.argv[2] programToken = sys.argv[3] userToken = sys.argv[4] prepaidCardToken = sys.argv[5] api = hyperwallet.Api(sys.argv[1], sys.argv[2], sys.argv[3]) data = { 'token': prepaidCardToken, 'userToken': userToken, 'cardPackage': 'DEFAULT', 'cardNumber': '4149629391723970' } response = api.updatePrepaidCard(userToken, prepaidCardToken, data) print response
import hyperwallet import sys import util username = sys.argv[1] password = sys.argv[2] programToken = sys.argv[3] userToken = sys.argv[4] encryptionEnabled = sys.argv[5] hyperwalletEncryption = None if encryptionEnabled == 'true': hyperwalletEncryption = { 'clientPrivateKeySetLocation': util.CLIENT_PRIVATE_KEYSET_PATH, 'hyperwalletKeySetLocation': util.HYPERWALLET_KEYSET_PATH } api = hyperwallet.Api(sys.argv[1], sys.argv[2], sys.argv[3], util.SERVER, hyperwalletEncryption) response = api.listUserStatusTransitions(userToken) print util.toJson(response)
import pyrebase from users import token_required import braintree import hyperwallet gateway = braintree.BraintreeGateway( braintree.Configuration(braintree.Environment.Sandbox, merchant_id="qgc7sgct9mnbmpx5", public_key="mbm6gsqbp8znnn8s", private_key="a0a13d2f534b7999d18cb55272e0abb1")) api = hyperwallet.Api("restapiuser@39011931613", "angel@4340", "prg-bbfd3080-0a52-4802-8e7c-869f72518955", "https://api.sandbox.hyperwallet.com/rest/v3/users") config = { "apiKey": "AIzaSyAIQcCsIQk3i-uIFnPnINhs6F3PJa3H418", "authDomain": "devporte-64919.firebaseapp.com", "databaseURL": "https://devporte-64919.firebaseio.com", "projectId": "devporte-64919", "storageBucket": "devporte-64919.appspot.com", "messagingSenderId": "943749828225", "appId": "1:943749828225:web:3f65bee5527a2d27098780", "measurementId": "G-5HH7B19XJJ" } firebase = pyrebase.initialize_app(config)