payment controller boiletplate code