init implementation of pay