lib/stripe_wrapper.rb in stripe_wrapper-0.1.1 vs lib/stripe_wrapper.rb in stripe_wrapper-0.1.2

- old
+ new

@@ -17,12 +17,12 @@ } # , { idempotency_key: "oSTGoYvkC1kaczHw"} ) end - def self.create_customer(token,user) + def self.create_customer(token,user,description='') Stripe::Customer.create( - :description => "Customer for liam.moore@example.com", + :description => description, :email => user.email, :source => token # obtained with Stripe.js ) end