Payment APIs missing reference to env