[Bug] Failed payment shouldn't be counted when calculating order payment state.

Failed payment shouldn't be counted when calculating order payment state.