Replace template variables with values before hitting the callbackUrl