Be careful, all it takes is one person to CoD you a stack of herbs for 1k and youre screwed
How is that? You set a max price per id.. If price is lower than that, then accept it, else return it. You can't really get screwed, because all that happens if you get an overpriced item or some items you don't want to pay for, is that the mail gets returned to sender.
Just accepting cod without checking the price is way too stupid and risky, I'd never do that![]()
That's no problem. You get give a max price per item id.. Then it just sums up all the items in the mail from the list of max prices you have to see if the combined price is higher than the actual cod price.