complete the curl model and user_pay, it works