Package com.jada.xml.paymentGateway

Examples of com.jada.xml.paymentGateway.AuthorizeNet


    String provider = paymentGateway.getPaymentGatewayProvider();
    form.setPaymentGatewayProvider(provider);
    String data = paymentGateway.getPaymentGatewayData();
    if (!Format.isNullOrEmpty(data)) {
      if (provider.equals(AuthorizeNetEngine.class.getSimpleName())) {
        AuthorizeNet authorizeNet = (AuthorizeNet) Utility.joxUnMarshall(AuthorizeNet.class, data);
        form.setAuthorizeNetLoginId(authorizeNet.getLoginId());
//        form.setAuthorizeNetTranKey(authorizeNet.getTranKey());
        form.setAuthorizeNetEnvironment(authorizeNet.getEnvironment());
      }
      if (provider.equals(PsiGateEngine.class.getSimpleName())) {
        PSIGate psiGate = (PSIGate) Utility.joxUnMarshall(PSIGate.class, data);
        form.setPsiGateStoreId(psiGate.getStoreId());
//        form.setPsiGatePassPhrase(psiGate.getPassPhrase());
View Full Code Here


    paymentGateway.setPaymentGatewayName(form.getPaymentGatewayName());
    String provider = form.getPaymentGatewayProvider();
    paymentGateway.setPaymentGatewayProvider(provider);
    String paymentGatewayData = paymentGateway.getPaymentGatewayData();
    if (provider.equals(AuthorizeNetEngine.class.getSimpleName())) {
      AuthorizeNet authorizeNet = new AuthorizeNet();
      if (!insertMode) {
        authorizeNet = (AuthorizeNet) Utility.joxUnMarshall(AuthorizeNet.class, paymentGatewayData);
      }
      authorizeNet.setLoginId(form.getAuthorizeNetLoginId());
      if (!Format.isNullOrEmpty(form.getAuthorizeNetTranKey())) {
        authorizeNet.setTranKey(form.getAuthorizeNetTranKey());
      }
      authorizeNet.setEnvironment(form.getAuthorizeNetEnvironment());
      paymentGatewayData = Utility.joxMarshall("AuthorizeNet", authorizeNet);
    }
    if (provider.equals(PsiGateEngine.class.getSimpleName())) {
      PSIGate psiGate = new PSIGate();
      if (!insertMode) {
View Full Code Here

  static Logger logger = Logger.getLogger(AuthorizeNetEngine.class);
 
  public AuthorizeNetEngine(Site site, Long paymentGatewayId) throws Exception {
    this.site = site;
    PaymentGateway paymentGateway = PaymentGatewayDAO.load(site.getSiteId(), paymentGatewayId);
    AuthorizeNet authorizeNet = (AuthorizeNet) Utility.joxUnMarshall(AuthorizeNet.class, paymentGateway.getPaymentGatewayData());
    loginId = authorizeNet.getLoginId();
    tranKey = authorizeNet.getTranKey();
    environment = authorizeNet.getEnvironment();
  }
View Full Code Here

TOP

Related Classes of com.jada.xml.paymentGateway.AuthorizeNet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.