So the person adds an item to the cart at www.a.com and you want to transfer the cart contents to www.b.com?
This is basicly the same idea as transferring cart contents to an SSL server on another domain.
See the "Secure Socket Layer (SSL) and eCart sites" tutorial on the how to section of the eCart support page:
ecart/