If you land, you get back what you "bought" it for.
If you crash, you lose what you "bought" it for.
What you "pay" for it is roughly what you see in the hanger. The cost is constantly calculated, so the actual amount "paid" can be a little different from when you first enter the hanger. It would be nice if a message popped up when you leave the hanger to inform you of what you actually paid. Suffice it to say if you only had x perkies, and when you tried to up that perk ride, the cost became x+1, you probably wouldn't be able to leave the hanger.