当前位置: 首页>>代码示例>>Java>>正文


Java InitializationException.printStackTrace方法代码示例

本文整理汇总了Java中com.paymentech.orbital.sdk.util.exceptions.InitializationException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java InitializationException.printStackTrace方法的具体用法?Java InitializationException.printStackTrace怎么用?Java InitializationException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.paymentech.orbital.sdk.util.exceptions.InitializationException的用法示例。


在下文中一共展示了InitializationException.printStackTrace方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ccAuth

import com.paymentech.orbital.sdk.util.exceptions.InitializationException; //导入方法依赖的package包/类
public static Map<String, Object> ccAuth(DispatchContext ctx, Map<String, Object> context) {
    Delegator delegator = ctx.getDelegator();
    Map<String, Object> results = ServiceUtil.returnSuccess();
    Map<String, Object> props = buildOrbitalProperties(context, delegator);
    props.put("transType", "AUTH_ONLY");
    //Tell the request object which template to use (see RequestIF.java)
    try {
        request = new Request(RequestIF.NEW_ORDER_TRANSACTION);
    } catch (InitializationException e) {
        Debug.logError("Error in request initialization", module);
        e.printStackTrace();
    }
    buildAuthOrAuthCaptureTransaction(context, delegator, props, request, results);
    Map<String, Object> validateResults = validateRequest(context, props, request);
    String respMsg = (String) validateResults.get(ModelService.RESPONSE_MESSAGE);
    if (ModelService.RESPOND_ERROR.equals(respMsg)) {
        results.put(ModelService.ERROR_MESSAGE, "Validation Failed - invalid values");
        return results;
    }
    initializeTransactionProcessor();
    Map<String, Object> processCardResponseContext = processCard(request);
    // For Debugging Purpose
    printTransResult((ResponseIF) processCardResponseContext.get("processCardResponse"));
    processAuthTransResult(processCardResponseContext, results);
    return results;
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:27,代码来源:OrbitalPaymentServices.java

示例2: ccAuthCapture

import com.paymentech.orbital.sdk.util.exceptions.InitializationException; //导入方法依赖的package包/类
public static Map<String, Object> ccAuthCapture(DispatchContext ctx, Map<String, Object> context) {
    Delegator delegator = ctx.getDelegator();
    Map<String, Object> results = ServiceUtil.returnSuccess();
    Map<String, Object> props = buildOrbitalProperties(context, delegator);
    props.put("transType", "AUTH_CAPTURE");
    //Tell the request object which template to use (see RequestIF.java)
    try {
        request = new Request(RequestIF.NEW_ORDER_TRANSACTION);
    } catch (InitializationException e) {
        Debug.logError("Error in request initialization", module);
        e.printStackTrace();
    }
    buildAuthOrAuthCaptureTransaction(context, delegator, props, request, results);
    Map<String, Object> validateResults = validateRequest(context, props, request);
    String respMsg = (String) validateResults.get(ModelService.RESPONSE_MESSAGE);
    if (ModelService.RESPOND_ERROR.equals(respMsg)) {
        results.put(ModelService.ERROR_MESSAGE, "Validation Failed - invalid values");
        return results;
    }
    initializeTransactionProcessor();
    Map<String, Object> processCardResponseContext = processCard(request);
    // For Debugging Purpose
    printTransResult((ResponseIF) processCardResponseContext.get("processCardResponse"));
    processAuthCaptureTransResult(processCardResponseContext, results);
    return results;
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:27,代码来源:OrbitalPaymentServices.java

示例3: buildOrbitalProperties

import com.paymentech.orbital.sdk.util.exceptions.InitializationException; //导入方法依赖的package包/类
private static Map<String, Object> buildOrbitalProperties(Map<String, Object> context, Delegator delegator) {
    //TODO: Will move this to property file and then will read it from there.
    String configFile = "/applications/accounting/config/linehandler.properties";
    String paymentGatewayConfigId = (String) context.get("paymentGatewayConfigId");
    Map<String, Object> buildConfiguratorContext = FastMap.newInstance();
    try {
        buildConfiguratorContext.put("OrbitalConnectionUsername", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "username"));
        buildConfiguratorContext.put("OrbitalConnectionPassword", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "connectionPassword"));
        buildConfiguratorContext.put("merchantId", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "merchantId"));
        buildConfiguratorContext.put("engine.class", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "engineClass"));
        buildConfiguratorContext.put("engine.hostname", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "hostName"));
        buildConfiguratorContext.put("engine.port", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "port"));
        buildConfiguratorContext.put("engine.hostname.failover", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "hostNameFailover"));
        buildConfiguratorContext.put("engine.port.failover", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "portFailover"));
        buildConfiguratorContext.put("engine.connection_timeout_seconds", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "connectionTimeoutSeconds"));
        buildConfiguratorContext.put("engine.read_timeout_seconds", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "readTimeoutSeconds"));
        buildConfiguratorContext.put("engine.authorizationURI", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "authorizationURI"));
        buildConfiguratorContext.put("engine.sdk_version", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "sdkVersion"));
        buildConfiguratorContext.put("engine.ssl.socketfactory", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "sslSocketFactory"));
        buildConfiguratorContext.put("Response.response_type", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "responseType"));
        String configFileLocation = System.getProperty("ofbiz.home") + configFile;
        Configurator config = Configurator.getInstance(configFileLocation);
        buildConfiguratorContext.putAll(config.getConfigurations());
        config.setConfigurations(buildConfiguratorContext);
    } catch (InitializationException e) {
        Debug.logError("Orbital Configurator Initialization Error: " + e.getMessage(), module);
        e.printStackTrace();
    }
    return buildConfiguratorContext;
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:31,代码来源:OrbitalPaymentServices.java

示例4: initializeTransactionProcessor

import com.paymentech.orbital.sdk.util.exceptions.InitializationException; //导入方法依赖的package包/类
private static void initializeTransactionProcessor() {
    //Create a Transaction Processor
    //The Transaction Processor acquires and releases resources and executes transactions.
    //It configures a pool of protocol engines, then uses the pool to execute transactions.
    try {
        tp = new TransactionProcessor();
    } catch (InitializationException iex) {
        Debug.logError("TransactionProcessor failed to initialize" + iex.getMessage(), module);
        iex.printStackTrace();
    }
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:12,代码来源:OrbitalPaymentServices.java


注:本文中的com.paymentech.orbital.sdk.util.exceptions.InitializationException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。