www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,65 @@
|
|||
package it.acxent.cc.servlet;
|
||||
|
||||
import it.acxent.anag.Users;
|
||||
import it.acxent.bank.paypal.PayPalResp;
|
||||
import it.acxent.cart.Cart;
|
||||
import it.acxent.contab.Documento;
|
||||
import it.acxent.db.ApplParm;
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.db.ResParm;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public class PayPalSvlt extends it.acxent.bank.servlet.paypal.PayPalSvlt {
|
||||
private static final long serialVersionUID = -7977873008193998783L;
|
||||
|
||||
protected static ApplParmFull ap2;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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 void recordOrder(HttpServletRequest req, HttpServletResponse res, PayPalResp ppResponse) {
|
||||
ApplParmFull apFull = getApFull(req);
|
||||
Users utente = (Users)getLoginUser(req);
|
||||
if (ppResponse != null && ppResponse.isPaymentDone()) {
|
||||
long l_id_ordine = ppResponse.getId_ordine();
|
||||
Documento bean = new Documento(apFull);
|
||||
System.out.println("paypalsvlt recordOrder: " + l_id_ordine);
|
||||
bean.findByProgOrdineWww(l_id_ordine);
|
||||
bean.setDataPagamento(DBAdapter.getToday());
|
||||
bean.setDataTransaction(DBAdapter.getToday());
|
||||
bean.setDescTransaction(ppResponse.getTRANSACTIONID());
|
||||
bean.setFlgPagata(1L);
|
||||
ResParm rp = bean.save();
|
||||
if (rp.getStatus()) {
|
||||
if (bean.getFlgWwwRichiedeFattura() == 1L) {
|
||||
long l = 22L;
|
||||
} else {
|
||||
long l = 23L;
|
||||
}
|
||||
rp = bean.sendOrderMailMessageTuttofoto(utente, true, true, false, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void processRequest(HttpServletRequest req, HttpServletResponse res) {
|
||||
super.processRequest(req, res);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue