I need to create a custom route / endpoint to verify subscription status for a chrome extension login form.
Im using woocommerce subscriptions.
There are 4 subscription conditions, registered (no subscription), trial, basic, premium
My extension currently logs in, gets the user id, and sends it back via get request to rest api custom route / endpoint to verify which subscription condition is valid. The endpoint should return one of these 4 conditions in quotes (ie: "basic") via the custom route url.
The extension is already coded and operational as is the wordpress site. All I need is the route endpoint to verify which subscription is applicable. If there is no user that exists, the user is prompted to register. So any logged in user will fit one of these 4 conditions.
This code should be added to the wordpress child theme [login to view URL]
here is a tutorial describing some of what I need: [login to view URL]
creating the endpoint is simple, there is an example in the tutorial I added for the endpoint, woocommerce subscriptions has its own api. [login to view URL]
It's not much work everything else is done already, the woocommerce variable subscription product is already created as well.
I would like it done for 40$ usd in about one hour.
Hello Sir ! I have great experience with Wordpress and APIs and i can add the custom endpoint to your API in no time starting from now.