refactor stripe.rb