Auto Apply credits at checkout
Use rules. When the order is completed, use the actions contained in the  userpoints_rules submodule to manage your userpoints. You might choose the "When an order has been paid in full" or you could just watch for orders moving in status to "Completed."