Insert CURL if order approved

Dear,

In the backend, we can accept orders. My question is where can i add a action (CURL see below) once the order has been approved.



Thanks for the comment!



$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, “$feedback/feedback?action=sendInvitation&connector=16478899&user=$email&delay=5&remindDelay=0&resendIfDouble=1&orderNumber=$ordernr”);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

curl_setopt($ch, CURLOPT_NOPROGRESS, true);

curl_exec($ch);

curl_close($ch);