Package com.jada.xml.paymentGateway

Examples of com.jada.xml.paymentGateway.PayPalWebsitePaymentPro


        payPalExpressCheckOut.setPaymentPaypalSignature(AESEncoder.getInstance().encode(form.getPaymentPaypalSignature()));
      }
      paymentGatewayData = Utility.joxMarshall("PayPalExpressCheckOut", payPalExpressCheckOut);
    }
    if (provider.equals(PayPalWebsitePaymentProEngine.class.getSimpleName())) {
      PayPalWebsitePaymentPro payPalWebsitePaymentPro = new PayPalWebsitePaymentPro();
      if (!insertMode) {
        payPalWebsitePaymentPro = (PayPalWebsitePaymentPro) Utility.joxUnMarshall(PayPalWebsitePaymentPro.class, paymentGatewayData);
      }
      payPalWebsitePaymentPro.setPaypalApiUsername(form.getPaypalWebsitePaymentProApiUsername());
      payPalWebsitePaymentPro.setPaypalEnvironment(form.getPaypalWebsitePaymentProEnvironment());
      if (!Format.isNullOrEmpty(form.getPaypalWebsitePaymentProApiPassword())) {
        payPalWebsitePaymentPro.setPaypalApiPassword(AESEncoder.getInstance().encode(form.getPaypalWebsitePaymentProApiPassword()));
      }
      if (!Format.isNullOrEmpty(form.getPaypalWebsitePaymentProSignature())) {
        payPalWebsitePaymentPro.setPaypalSignature(AESEncoder.getInstance().encode(form.getPaypalWebsitePaymentProSignature()));
      }
      paymentGatewayData = Utility.joxMarshall("PayPalWebsitePaymentProEngine", payPalWebsitePaymentPro);
    }
    if (provider.equals(PaymentExpressEngine.class.getSimpleName())) {
      PaymentExpress paymentExpress = new PaymentExpress();
View Full Code Here


        form.setPaymentPaypalEnvironment(payPalExpressCheckOut.getPaymentPaypalEnvironment());
        form.setPaymentPaypalExtraAmount(Format.getDouble(payPalExpressCheckOut.getPaymentPaypalExtraAmount()));
        form.setPaymentPaypalExtraPercentage(Format.getDouble(payPalExpressCheckOut.getPaymentPaypalExtraPercentage()));
      }
      if (provider.equals(PayPalWebsitePaymentProEngine.class.getSimpleName())) {
        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());
View Full Code Here

TOP

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

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.