0
Hi - is it possible to set the value of commission in the API code? The conversion data array doesn't appear to have an option for that:
$conversion_data = array(
"name" => "Custom Order",
"component" => "com_yourcomponent",
"extended_name" => "The item name",
"type" => 1,
"value" => 100 ,
"reference_id" => 234,
"approved" => 1,
);
Also - could you please confirm what "type" => 1 refers to and and what is the purpose of specifying the component?
$conversion_data = array(
"name" => "Custom Order",
"component" => "com_yourcomponent",
"extended_name" => "The item name",
"type" => 1,
"value" => 100 ,
"reference_id" => 234,
"approved" => 1,
);
Also - could you please confirm what "type" => 1 refers to and and what is the purpose of specifying the component?
Responses (2)
-
Accepted Answer
-
Accepted Answer
0Hello David,
at the moment it's not possible to specify the comission in the API call but this is something we're adding on the next release.
"type" => 1 refers to just an internal value, it's really not something to worry about. it is intended in case you have "more than one type of action tracked" per component. in this case you would differentiate the actions by setting a different type number.
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »