.
.
A pending order can't be "closed", it has to be deleted. Check the documentation for OrderDelete().
You agree to website policy and terms of use