develop the client api for pay application