All money spent during the Diablo Immortal Beta will be returned in-full to your Battle.net Account as Beta Credits when the game officially launches. Those credits can then be re-spent on Diablo Immortal.

If you have a small amount of credit that is not enough to make a purchase, you can use the exchange option to convert your remaining credit into Eternal Orbs.