A swapping scheme is proposed to facilitate capital flow into e-commerce by controlling credit risks associated with e-commerce corporations. More specifically, we develop and analyze a mathematical model for swapping credit risks across two industrial sectors: industrial sector A, without involving e-commerce; and industrial sector B, which relies upon e-commerce. When two Banks X and Y provide loans to corporations in A and B, a swapping scheme can be devised between Banks X and Y to improve the Value-at-Risk for both of them. By exploiting the dynamic stochastic model based on a Markov Modulated Poisson Process (MMPP) developed by Takada, Sumita and Takahashi, efficient computational procedures are established for solving the Value-at-Risk problems.