Esempio n. 1
0
 def buildNewMangoPayApi(self):
     sdk = MangoPayApi()
     # use test client credentails
     sdk.Config.ClientID = 'sdk-unit-tests'
     sdk.Config.ClientPassword = '******'
     sdk.OAuthTokenManager.RegisterCustomStorageStrategy(MemoryStorageStrategy())
     return sdk
Esempio n. 2
0
def get_mangopay_api_client():
    api = MangoPayApi()
    api.OAuthTokenManager.RegisterCustomStorageStrategy(
        MemoryStorageStrategy())
    api.Config.ClientID = settings.MANGOPAY_CLIENT_ID
    api.Config.ClientPassword = settings.MANGOPAY_PASSPHRASE
    api.Config.DebugMode = settings.MANGOPAY_DEBUG_MODE
    api.Config.BaseUrl = settings.MANGOPAY_BASE_URL
    return api