This function is used to authenticate and initiate checkout request