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) {