Advertisement
Guest User

Untitled

a guest
May 30th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. static boolean suppAuthorization(String siteId, String profileId, String pMethodId){
  2. switch(siteId){
  3. case "MLA":
  4. return true
  5. break
  6. case "MCO":
  7. case "MLV":
  8. case "MLC":
  9. return false
  10. break
  11. case "MLM":
  12. return profileId in ["santander"]
  13. break
  14. case "MLB":
  15. def auth = profileId in ["cielo", "redecard"]
  16. if(!auth && !("mercadopago".equals(profileId) && pMethodId in ["hipercard", "melicard"])){
  17. //Cuando el profile es mercadoapago y el medio de pago es hiper o meli, no soporta reserva / captura
  18. auth = true
  19. }
  20. return auth
  21. break
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement