Previously, when we get the order.updated
event, we obtain the order data and compare the sum of amount_money in each order.tender
with the order.total_money
, if they are equal, we regard the order has been paid successfully. However, for WALLET
type tender, it has the possibility that the amounts are the same but the payment still failed. Is there a better way to identify whether the order payed by WALLET
succeed or not?
The case we met, order id: 7bY7c8Yr7EAiKyZYpRSEiZvo6PNZY
.
Note: we cannot use the order.state == COMPLETE
, because lots of merchants do not complete the order.