Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static boolean suppAuthorization(String siteId, String profileId, String pMethodId){
- switch(siteId){
- case "MLA":
- return true
- break
- case "MCO":
- case "MLV":
- case "MLC":
- return false
- break
- case "MLM":
- return profileId in ["santander"]
- break
- case "MLB":
- def auth = profileId in ["cielo", "redecard"]
- if(!auth && !("mercadopago".equals(profileId) && pMethodId in ["hipercard", "melicard"])){
- //Cuando el profile es mercadoapago y el medio de pago es hiper o meli, no soporta reserva / captura
- auth = true
- }
- return auth
- break
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement