How Taocarts Keeps Reverse-Taobao Orders From Double-Charging Customers
How Taocarts Keeps Reverse-Taobao Orders From Double-Charging Customers Taocarts, a reverse-taobao shopping and consolidation service, lets overseas buyers purchase from Taobao, 1688 and a few other Chinese marketplaces, then ships everything as one consolidated parcel. Every order can touch three wallets: the buyer pays us, we pay the source marketplace, and a logistics provider charges us for…
Taocarts, a platform that consolidates shopping from various Chinese marketplaces, safeguards customers from double-charging during reverse-Taobao orders. The service handles payments, sourcing, and shipping as one unified parcel. The potential for double charges is high due to the multiple financial transactions involved. The root cause of double charges in such systems often stems from executing purchase and shipping steps separately.
If the shipping step fails, a retry can inadvertently trigger the purchase again. Taocarts addressed this issue by modeling the order as a strict state machine with defined steps: CREATED → PAID → PURCHASED → SHIPPED → RECEIVED. Each transition is guarded and idempotent, ensuring that a single purchase cannot occur twice. The idempotency keys at the boundary of the system also help prevent double charges when interacting with external APIs of source marketplaces.
By implementing these measures, Taocarts has eliminated the issue of double charges, maintaining financial transparency and trust with their customers.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.