How to authenticate existing customer via WooCommerce rest API

风格不统一 提交于 2019-11-28 10:36:30

There might be other ways but what comes to my mind immediately is to use JWT Authentication for WP REST API plugin.

Using this plugin you can request for authentication on the server using the username and password. It will return a token if successful. Then use the token for checking if this user/customer is valid. If valid, use wc api to create an order for this customer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!