Urgent.News

What's breaking now, across thousands of outlets.

Tech

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.

Read the original at dev.to →

More in Tech

One dotvault pull, the same .env everywhere: laptop, CI, cloud dev environments

This is part 2 of the series "dotvault, Start to Finish: One Command from Your Laptop to CI, Your Team, and Your AI Agents." dotvault will be released free of charge when this series ends.

  • Install dotvault CLI globally using npm i -g @earthlink/dotvault
  • Log in with dotvault login, enter email and password
  • dotvault whoami displays email, token expiry and organization details

folderblog 0.2.9: Fixes from a full QA pass, and podcast addresses that stay put

folderblog 0.2.9 is a fix release that came out of a full QA pass over this morning’s 0.2.8 . That pass followed the published instructions step by step, the way a new user would, and the rough edges…

  • Podcast feed title updated to include blog name for clarity
  • New dates.toml file stores date info for posts without dates
  • [podcast.storage] prefix setting pinpoints episode file folder

Building a remote MCP server in plain Laravel (no SDK): notes from a tax-hours app

PropHours is a material participation log for rental property owners. People use it to record the hours they spend on their rentals, because US tax rules such as the STR loophole and real estate…

  • Remote MCP server built in Laravel without SDK
  • Four RPC methods: initialize, ping, list, call
  • OAuth security with dynamic client registration and PKCE S256

More from Sunday 25 October →