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,28 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue