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,186 @@
|
|||
package it.acxent.bank.xpay;
|
||||
|
||||
import it.acxent.bank._BankAdapter;
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.reg.EcDc;
|
||||
|
||||
public class XpayResp extends _BankAdapter {
|
||||
private long id_ordine;
|
||||
|
||||
private String importo;
|
||||
|
||||
private String data;
|
||||
|
||||
private String divisa;
|
||||
|
||||
private String session_id;
|
||||
|
||||
private String codTrans;
|
||||
|
||||
private String orario;
|
||||
|
||||
private String esito;
|
||||
|
||||
private String codAut;
|
||||
|
||||
private String BRAND;
|
||||
|
||||
private String nome;
|
||||
|
||||
private String cognome;
|
||||
|
||||
private String email;
|
||||
|
||||
private String mac;
|
||||
|
||||
private String messaggio;
|
||||
|
||||
public static final String ESITO_OK = "OK";
|
||||
|
||||
public static final String ESITO_KO = "KO";
|
||||
|
||||
public XpayResp() {}
|
||||
|
||||
public XpayResp(ApplParmFull apFull) {
|
||||
setAp(apFull);
|
||||
}
|
||||
|
||||
public long getId_ordine() {
|
||||
return this.id_ordine;
|
||||
}
|
||||
|
||||
public void setId_ordine(long id_ordine) {
|
||||
this.id_ordine = id_ordine;
|
||||
}
|
||||
|
||||
public String getImporto() {
|
||||
return (this.importo == null) ? "" : this.importo;
|
||||
}
|
||||
|
||||
public void setImporto(String importo) {
|
||||
this.importo = importo;
|
||||
}
|
||||
|
||||
public String getData() {
|
||||
return (this.data == null) ? "" : this.data;
|
||||
}
|
||||
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getDivisa() {
|
||||
return (this.divisa == null) ? "" : this.divisa;
|
||||
}
|
||||
|
||||
public void setDivisa(String divisa) {
|
||||
this.divisa = divisa;
|
||||
}
|
||||
|
||||
public String getSession_id() {
|
||||
return (this.session_id == null) ? "" : this.session_id;
|
||||
}
|
||||
|
||||
public void setSession_id(String session_id) {
|
||||
this.session_id = session_id;
|
||||
}
|
||||
|
||||
public String getCodTrans() {
|
||||
return (this.codTrans == null) ? "" : this.codTrans;
|
||||
}
|
||||
|
||||
public void setCodTrans(String codTrans) {
|
||||
this.codTrans = codTrans;
|
||||
}
|
||||
|
||||
public String getOrario() {
|
||||
return (this.orario == null) ? "" : this.orario;
|
||||
}
|
||||
|
||||
public void setOrario(String orario) {
|
||||
this.orario = orario;
|
||||
}
|
||||
|
||||
public String getEsito() {
|
||||
return (this.esito == null) ? "" : this.esito;
|
||||
}
|
||||
|
||||
public void setEsito(String esito) {
|
||||
this.esito = esito;
|
||||
}
|
||||
|
||||
public String getCodAut() {
|
||||
return (this.codAut == null) ? "" : this.codAut;
|
||||
}
|
||||
|
||||
public void setCodAut(String codAut) {
|
||||
this.codAut = codAut;
|
||||
}
|
||||
|
||||
public String getBRAND() {
|
||||
return (this.BRAND == null) ? "" : this.BRAND;
|
||||
}
|
||||
|
||||
public void setBRAND(String brand) {
|
||||
this.BRAND = brand;
|
||||
}
|
||||
|
||||
public String getNome() {
|
||||
return (this.nome == null) ? "" : this.nome;
|
||||
}
|
||||
|
||||
public void setNome(String nome) {
|
||||
this.nome = nome;
|
||||
}
|
||||
|
||||
public String getCognome() {
|
||||
return (this.cognome == null) ? "" : this.cognome;
|
||||
}
|
||||
|
||||
public void setCognome(String cognome) {
|
||||
this.cognome = cognome;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return (this.email == null) ? "" : this.email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getMac() {
|
||||
return (this.mac == null) ? "" : this.mac;
|
||||
}
|
||||
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
|
||||
public String getMessaggio() {
|
||||
return (this.messaggio == null) ? "" : this.messaggio.trim();
|
||||
}
|
||||
|
||||
public void setMessaggio(String messaggio) {
|
||||
this.messaggio = messaggio;
|
||||
}
|
||||
|
||||
public boolean isMacRitornoOk() {
|
||||
String temp = "codTrans=" + getCodTrans() + "esito=" + getEsito() + "importo=" + getImporto() + "divisa=" + getDivisa() + "data=" +
|
||||
getData() + "orario=" + getOrario() + "codAut=" + getCodAut() + getKey();
|
||||
String res = "";
|
||||
try {
|
||||
res = EcDc.cryptSHA1Plain(temp);
|
||||
if (res.equals(getMac()))
|
||||
return true;
|
||||
return false;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return getParm("XPAY_MAC_KEY").getTesto();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue