Regalamiunsorriso/decompiled-libs/www/acxent-common-1.0.1/it/acxent/cc/servlet/PayPalResponseSvlt.java

35 lines
1.3 KiB
Java

package it.acxent.cc.servlet;
import it.acxent.bank.paypal.PayPalResp;
import it.acxent.bank.servlet.paypal.GetPayPalResponseSvlt;
import it.acxent.cart.Cart;
import it.acxent.contab.Documento;
import it.acxent.db.ApplParm;
import it.acxent.db.ApplParmFull;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class PayPalResponseSvlt extends GetPayPalResponseSvlt {
private static final long serialVersionUID = -7370187024494888710L;
protected static ApplParmFull ap2;
protected void preparePaymenResPage(HttpServletRequest req, HttpServletResponse res, PayPalResp ppResponse) {
long l_id_ordine = 0L;
if (ppResponse != null)
l_id_ordine = ppResponse.getId_ordine();
Documento bean = new Documento(getApFull());
bean.findByProgOrdineWww(l_id_ordine);
req.setAttribute("bean", bean);
}
protected String getCheckOutMailMessage() {
return getParm(Cart.P_CHECKOUTMSG).getTesto();
}
protected ApplParmFull getAp2() {
if (ap2 == null)
ap2 = new ApplParmFull(new ApplParm(getApFull().getParm("DBDRIVER2").getNumeroInt(), getApFull().getParm("DBNAME2").getTesto(), getApFull().getParm("USER2").getTesto(), getApFull().getParm("PASSWORD2").getTesto()));
return ap2;
}
}