Added SubResourceController and fixed JS payment URL issue