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

28 lines
945 B
Java

package it.acxent.cc.servlet;
import it.acxent.bank.servlet.stripe._StripeSvlt;
import it.acxent.contab.Documento;
import it.acxent.db.ResParm;
import javax.servlet.http.HttpServletRequest;
public class StripeSvlt extends _StripeSvlt {
private static final long serialVersionUID = -1087656160829384851L;
protected ResParm saveClientSecret(HttpServletRequest req, long l_id, String l_clientSecret) {
Documento doc = new Documento(getApFull(req));
doc.findByPrimaryKey(l_id);
if (doc.getId_documento() > 0L) {
doc.setDescTransactionStripe(l_clientSecret);
return doc.superSave();
}
return new ResParm(false, "no doc found:" + l_id);
}
protected long getAmount(HttpServletRequest req, long l_id) {
Documento doc = new Documento(getApFull(req));
doc.findByPrimaryKey(l_id);
if (doc.getId_documento() > 0L)
return Math.round(doc.getTotaleDocumento() * 100.0D);
return 0L;
}
}