コード例 #1
0
 def setUpClass(self):
     print("---------------------------------------Tests---------------------------------------\nProduct Name: Visa Direct\nApi Name: Watch List Screening API")
     globalConfig = GlobalConfig()
     config = Configuration()
     config.username = globalConfig.userName
     config.password = globalConfig.password
     config.cert_file = globalConfig.certificatePath
     config.key_file = globalConfig.privateKeyPath
     config.shared_secret = globalConfig.sharedSecret
     config.api_key['apikey'] = globalConfig.apiKey
     config.ssl_ca_cert = globalConfig.caCertPath
     config.proxy_url = globalConfig.proxyUrl
     self.api = WsApi(None)
コード例 #2
0
 def setUpClass(self):
     print(
         "---------------------------------------Tests---------------------------------------\nProduct Name: Payment Account Validation\nApi Name: Payment Account Validation API"
     )
     globalConfig = GlobalConfig()
     config = Configuration()
     config.username = globalConfig.userName
     config.password = globalConfig.password
     config.cert_file = globalConfig.certificatePath
     config.key_file = globalConfig.privateKeyPath
     config.shared_secret = globalConfig.sharedSecret
     config.api_key['apikey'] = globalConfig.apiKey
     config.ssl_ca_cert = globalConfig.caCertPath
     config.proxy_url = globalConfig.proxyUrl
     self.api = PavApi(None)
コード例 #3
0
ファイル: visaapi.py プロジェクト: CrystalYeoh/InnovatingVisa
from __future__ import print_function
import time
from src.apis.merchant_benchmark_api import MerchantBenchmarkApi
from src.configuration import Configuration

config = Configuration()
# Uncomment this block to enable proxy
# config.proxy_url = 'PROXY_URL'

# Configure HTTP basic authorization: basicAuth
config.username = '******'
config.password = '******'
config.cert_file = 'ABSOLUTE_PATH_TO_CERT_FILE'
config.key_file = 'ABSOLUTE_PATH_TO_KEY_FILE'
config.ssl_ca_cert = 'ABSOLUTE_PATH_TO_CA_CERT_FILE'

# Unblock this block to configure MLE credentials
# config.api_key['keyId'] = 'YOUR_KEY_ID'
# config.encryption_public_key_path = 'ABSOLUTE_PATH_TO_MLE_CERT_FILE'
# config.decryption_private_key_path = 'ABSOLUTE_PATH_TO_MLE_KEY_FILE'

# create an instance of the API class
api_instance = MerchantBenchmarkApi()

# Set all the required parameters in the postmerchant_benchmark. Look at the documentation for further clarification.
merchant_benchmarkpost_payload = src.MerchantBenchmarkpostPayload(
)  # MerchantBenchmarkpostPayload | Merchant Benchmark request payload

try:
    api_response = api_instance.postmerchant_benchmark(
        merchant_benchmarkpost_payload)