AgentPayment controller cahnges for confirmation with AngularJS