[Bug] Failed payment shouldn't be counted when confirming an order.

Failed payment shouldn't be counted when confirming an order.