Merchants and Currencies
The Virtual Cards Simulator comes pre-configured with a number of merchants and currency conversion rates.
List the Simulator Merchants
try {
const result = await simulatorClient.listSimulatorMerchants()
} catch (error) {
// Handle error
}do {
let response = try await simulatorClient.getSimulatorMerchants()
// Find a hotel or motel
let hotel = try response.get().first { $0.mcc == "7011" }
} catch let error {
// Handle/notify the user of error
}launch {
try {
val merchants = withContext(Dispatchers.IO) {
simulatorClient.getSimulatorMerchants()
}
// Find a hotel or motel
val hotel = merchants.find { it.mcc == "7011" }
} catch (e: GetSimulatorMerchantsException) {
// Handle/notify the user of exception
}
}List the Simulator Conversion Rates
Last updated