Your money isn't charged when you place an order, it's reserved from your available balance. If you don't receive an allocation, the full amount is automatically released back to you. You're only charged for the shares actually allocated to you.