app/src/main/java/com/treslines/pagsegurodemo/PagSeguroCheckout.java
private void validateRedirectUrl(final String redirectUrl){
        if(redirectUrl.isEmpty()){
            throw new IllegalArgumentException("Redirect url can not be empty!");
        }
        if(redirectUrl.length()>255){
            throw new IllegalArgumentException("Redirect url can not exceed 255 characters!");
        }
    }
/** validation acc. to pagseguro's web documentation*/
validation acc. to pagseguro's web documentation
validation acc . to pagseguro ' s web documentation
private void validateRedirectUrl(final String redirectUrl){
        if(redirectUrl.isEmpty()){
            throw new IllegalArgumentException("Redirect url can not be empty!");
        }
        if(redirectUrl.length()>255){
            throw new IllegalArgumentException("Redirect url can not exceed 255 characters!");
        }
    }
private void validateRedirectUrl ( final String redirectUrl ) { if ( redirectUrl . isEmpty ( ) ) { throw new IllegalArgumentException ( "Redirect url can not be empty!" ) ; } if ( redirectUrl . length ( ) > 255 ) { throw new IllegalArgumentException ( "Redirect url can not exceed 255 characters!" ) ; } }
validation acc.
validation acc .