init the code for DirectPayment