Package com.jada.xml.paymentGateway

Examples of com.jada.xml.paymentGateway.PaymentExpress


  static Logger logger = Logger.getLogger(PaymentExpressEngine.class);
 
  public PaymentExpressEngine(Site site, Long paymentGatewayId) throws Exception {
    this.site = site;
    PaymentGateway paymentGateway = PaymentGatewayDAO.load(site.getSiteId(), paymentGatewayId);
    PaymentExpress paymentExpress = (PaymentExpress) Utility.joxUnMarshall(PaymentExpress.class, paymentGateway.getPaymentGatewayData());

    postUsername = paymentExpress.getPostUsername();
    postPassword = paymentExpress.getPostPassword();
    environment = paymentExpress.getEnvironment();
   
    Mapping mapping = new Mapping();
    InputSource input = new InputSource(getClass().getResourceAsStream("/com/jada/xml/paymentexpress/TxnRequestMapping.xml"));
    mapping.loadMapping(input);
    xmlContext = new XMLContext();
View Full Code Here


        payPalWebsitePaymentPro.setPaypalSignature(AESEncoder.getInstance().encode(form.getPaypalWebsitePaymentProSignature()));
      }
      paymentGatewayData = Utility.joxMarshall("PayPalWebsitePaymentProEngine", payPalWebsitePaymentPro);
    }
    if (provider.equals(PaymentExpressEngine.class.getSimpleName())) {
      PaymentExpress paymentExpress = new PaymentExpress();
      if (!insertMode) {
        paymentExpress = (PaymentExpress) Utility.joxUnMarshall(PaymentExpress.class, paymentGatewayData);
      }
      paymentExpress.setPostUsername(form.getPaymentExpressPostUsername());
      if (!Format.isNullOrEmpty(form.getPaymentExpressPostPassword())) {
        paymentExpress.setPostPassword(form.getPaymentExpressPostPassword());
      }
      paymentExpress.setEnvironment(form.getPaymentExpressEnvironment());
      paymentGatewayData = Utility.joxMarshall("PaymentExpress", paymentExpress);
    }
    if (provider.equals(PayPalPayFlowEngine.class.getSimpleName())) {
      PayPalPayFlow paypalPayFlow = new PayPalPayFlow();
      if (!insertMode) {
View Full Code Here

        PayPalWebsitePaymentPro payPalWebsitePaymentPro = (PayPalWebsitePaymentPro) Utility.joxUnMarshall(PayPalWebsitePaymentPro.class, data);
        form.setPaypalWebsitePaymentProApiUsername(payPalWebsitePaymentPro.getPaypalApiUsername());
        form.setPaypalWebsitePaymentProEnvironment(payPalWebsitePaymentPro.getPaypalEnvironment());
      }
      if (provider.equals(PaymentExpressEngine.class.getSimpleName())) {
        PaymentExpress paymentExpress = (PaymentExpress) Utility.joxUnMarshall(PaymentExpress.class, data);
        form.setPaymentExpressPostUsername(paymentExpress.getPostUsername());
        form.setPaymentExpressEnvironment(paymentExpress.getEnvironment());
      }
      if (provider.equals(PayPalPayFlowEngine.class.getSimpleName())) {
        PayPalPayFlow payPalPayFlow = (PayPalPayFlow) Utility.joxUnMarshall(PayPalPayFlow.class, data);
        form.setPaypalPayFlowUser(payPalPayFlow.getUser());
        form.setPaypalPayFlowVendor(payPalPayFlow.getVendor());
View Full Code Here

TOP

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

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.