add agreement actions and api to payment factory.