34 lines
1.2 KiB
Java
34 lines
1.2 KiB
Java
package it.acxent.pg.servlet;
|
|
|
|
import it.acxent.bank.paypal.PayPalResp;
|
|
import it.acxent.bank.servlet.paypal.GetPayPalResponseSvlt;
|
|
import it.acxent.cart.Cart;
|
|
import it.acxent.db.ApplParm;
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.pg.Users;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
@Deprecated
|
|
public class PayPalResponseSvlt extends GetPayPalResponseSvlt {
|
|
protected static ApplParmFull ap2;
|
|
|
|
protected void preparePaymenResPage(HttpServletRequest req, HttpServletResponse res, PayPalResp ppResponse) {
|
|
long l_id_users = 0L;
|
|
if (ppResponse != null)
|
|
l_id_users = ppResponse.getId_ordine();
|
|
Users user = new Users(getApFull());
|
|
user.findByPrimaryKey(l_id_users);
|
|
req.setAttribute("user", user);
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|