I've created my own order form using the API. It works GREAT!
I am also using the affiliate module that comes with WHMCS and it does what I need it to do.
BUT...
When I make an order through the API, it doesn't assign the order to the affiliate. It does give the affiliate credit for a "Visitor Referred", but it doesn't give the affiliate credit for a "Signup"
Is there a way to assign an order to an affiliate using the API?
How do I clear pending orders for accounts that no longer exist?
While I was testing my setup, I created new users and new orders.
Then I deleted the users without activating the order.
When I deleted the users, the orders and the users went away, but it the pending-orders-counter remained.
Now I don't know how to clear the pending orders.