This would be a great feature, Right now e_commerce does this with paypal. When the payment is complete at the paypal site, the status in the e_commerce transaction list changes from pending to completed.
Although, there are many glitches and bugs, for example the roles don't expire, aren't transferred to the embedded gallery, etc.
I am suggesting to take a look at how they did this, maybe you can use those techniques?
