SHARE
TWEET

FINALIZADO

valentina01 Jul 21st, 2019 86 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. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top