Advertisement
valentina01

FINALIZADO

Jul 21st, 2019
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function ()
  2. {
  3.  var html = $('body').html()
  4.  if (html.indexOf('El pago fue exitoso.') >= 0)
  5. {
  6.  setTimeout(function ()
  7. {
  8.   location.href=('https://tendero.moviired.co/detail-payment/90102')
  9. }, 15000)
  10. }
  11. else
  12. {
  13. if(html.indexOf('Error com.mmoney.exception.ApplicationException: 60019: null') >= 0)
  14. {
  15. location.href=('https://tendero.moviired.co')
  16. alert('Se le acabo el saldo')
  17. }
  18. else
  19. {
  20. //alert('VERIFIQUE QUE ES UN ERROR')}
  21. if(html.indexOf('¡Pago fallido!') >= 0)
  22. {
  23. setTimeout(function ()
  24. {
  25.   location.href=('https://tendero.moviired.co/detail-payment/90102')
  26. }, 500)
  27. }else{
  28. location.href=('https://tendero.moviired.co/detail-payment/90102')
  29. //alert('VERIFIQUE QUE ES OTRO ERROR')
  30. }
  31. }
  32. }
  33. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement