Added method to return endpoint value based on sandbox flag on settings.
Added form action method as class field.
Added template field to render form.