def charge(user, amount) Stripe.charge(user, amount) rescue => e nil ensure user.update(charged: true) end