Change an minor bug in the payment flow

Page was not heading to the credit card page correctly . Needed to fix the inline JS in the payment page.