Only count completed payment.

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