Change Order Status on Custom payment Method transaction success?
I have created a custom payment method and I am using userpoints for payments instead of currency payments. There is no off-site or credit card payments, the user will pay from his points(Lets say it as points payment through my custom payment method).
Now, everything works fine. But the order created is always in "Pending" status after points payment transaction success.
How do I change the respective order status to "Completed" on successfull payment transaction which is made through my custom payment method.