generated the payment controller