develop the client api of pay application