Hello
Please read all the details
........................................
................................................
..................
I have 5 web services an i want connect woocommerce per products to one web service.
I want when create new woocommerce product can select a api .
Now when order is submitted to API after payment complete. I want to see the sucess message from API on the order notes as well.
my site and products category :
[login to view URL]
[login to view URL]
[login to view URL]
for sample :
product cat 1 :
1000 like fast = api 1
2000 like fast = api 1
----
product cat 2 :
1000 like slow= api 3
2000 like slow= api 3
and etc.
I want if user buyed 3000 likes and selected 3 posts,for sample seded 3 order request to api1 and submited 1000 likes per links.
So when i create products i mention what API it uses.
inside wp-admin > woocommerce > new product
i want user does not see in front end.
Api(s) Samples
API 1 -
[login to view URL]
API2 -
<?php
$data = array(
'api'=>'12345', // token
'link'=>'Your Link', // user or post url
'quantity'=>100, // amount
'service'=>1001 // service number
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, '[login to view URL]');
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
return $result;
Erorrs:
Api code is wrong
{
"error": true,
"message": "Api code is wrong",
"result": false
}
Some parametrs are missing
{
"error": true,
"message": "Some parametrs are missing",
"result": false
}
Not enough Balance
{
"error": true,
"message": "Not enough Balance ",
"result": false
}
Quantity is Smaller than Minimum of This service
{
"error": true,
"message": "Quantity is Smaller than Minimum of This service",
"result": false
}
API 3-
[login to view URL]
API 4-
[login to view URL]
API 5 -
sended request via url
for followers:
[login to view URL]
for likes :
[login to view URL]
(Api 2, ,4 and 5 just for likes an followers)
I have gone through your project description , but I would like to discuss to clear my understanding of requirements.
Please PM me so we can discuss the requirement in more details.Thanks.