Package com.jada.xml.paymentGateway

Examples of com.jada.xml.paymentGateway.PayPalExpressCheckOut


      }
      psiGate.setEnvironment(form.getPsiGateEnvironment());
      paymentGatewayData = Utility.joxMarshall("PSIGate", psiGate);
    }
    if (provider.equals(PayPalEngine.class.getSimpleName())) {
      PayPalExpressCheckOut payPalExpressCheckOut = new PayPalExpressCheckOut();
      if (!insertMode) {
        payPalExpressCheckOut = (PayPalExpressCheckOut) Utility.joxUnMarshall(PayPalExpressCheckOut.class, paymentGatewayData);
      }
      payPalExpressCheckOut.setPaymentPaypalCustClassId(Format.getLong(form.getPaymentPaypalCustClassId()));
      payPalExpressCheckOut.setPaymentPaypalApiUsername(form.getPaymentPaypalApiUsername());
      payPalExpressCheckOut.setPaymentPaypalEnvironment(form.getPaymentPaypalEnvironment());
      if (!Format.isNullOrEmpty(form.getPaymentPaypalExtraAmount())) {
        payPalExpressCheckOut.setPaymentPaypalExtraAmount(Format.getDouble(form.getPaymentPaypalExtraAmount()));
      }
      if (!Format.isNullOrEmpty(form.getPaymentPaypalExtraPercentage())) {
        payPalExpressCheckOut.setPaymentPaypalExtraPercentage(Format.getDouble(form.getPaymentPaypalExtraPercentage()));
      }
      if (!Format.isNullOrEmpty(form.getPaymentPaypalApiPassword())) {
        payPalExpressCheckOut.setPaymentPaypalApiPassword(AESEncoder.getInstance().encode(form.getPaymentPaypalApiPassword()));
      }
      if (!Format.isNullOrEmpty(form.getPaymentPaypalSignature())) {
        payPalExpressCheckOut.setPaymentPaypalSignature(AESEncoder.getInstance().encode(form.getPaymentPaypalSignature()));
      }
      paymentGatewayData = Utility.joxMarshall("PayPalExpressCheckOut", payPalExpressCheckOut);
    }
    if (provider.equals(PayPalWebsitePaymentProEngine.class.getSimpleName())) {
      PayPalWebsitePaymentPro payPalWebsitePaymentPro = new PayPalWebsitePaymentPro();
View Full Code Here


        form.setPsiGateStoreId(psiGate.getStoreId());
//        form.setPsiGatePassPhrase(psiGate.getPassPhrase());
        form.setPsiGateEnvironment(psiGate.getEnvironment());
      }
      if (provider.equals(PayPalEngine.class.getSimpleName())) {
        PayPalExpressCheckOut payPalExpressCheckOut = (PayPalExpressCheckOut) Utility.joxUnMarshall(PayPalExpressCheckOut.class, data);
        if (payPalExpressCheckOut.getPaymentPaypalCustClassId() != null) {
          form.setPaymentPaypalCustClassId(payPalExpressCheckOut.getPaymentPaypalCustClassId().toString());
        }
        form.setPaymentPaypalApiUsername(payPalExpressCheckOut.getPaymentPaypalApiUsername());
//        form.setPaymentPaypalApiPassword(payPalExpressCheckOut.getPaymentPaypalApiPassword());
//        form.setPaymentPaypalSignature(payPalExpressCheckOut.getPaymentPaypalSignature());
        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());
View Full Code Here

TOP

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

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.