Main problem you may run into is SSL unless your going to pass the creditcard information to the x-cart frame over some type of secure socket.
Other than that your just keeping track of whats in a persons cart, user logged in etc. inside of flash as well as in x-cart.
good luck
