Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function ()
- {
- var html = $('body').html()
- if (html.indexOf('El pago fue exitoso.') >= 0)
- {
- setTimeout(function ()
- {
- location.href=('https://tendero.moviired.co/detail-payment/90102')
- }, 15000)
- }
- else
- {
- if(html.indexOf('Error com.mmoney.exception.ApplicationException: 60019: null') >= 0)
- {
- location.href=('https://tendero.moviired.co')
- alert('Se le acabo el saldo')
- }
- else
- {
- //alert('VERIFIQUE QUE ES UN ERROR')}
- if(html.indexOf('¡Pago fallido!') >= 0)
- {
- setTimeout(function ()
- {
- location.href=('https://tendero.moviired.co/detail-payment/90102')
- }, 500)
- }else{
- location.href=('https://tendero.moviired.co/detail-payment/90102')
- //alert('VERIFIQUE QUE ES OTRO ERROR')
- }
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement