Created
June 26, 2014 23:38
-
-
Save wallace/a93c23ddde5764ecaf94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
customer = Stripe::Customer.create(description: "#{current_user.name} #{current_user.email}", card: payment_method.stripe_token) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2014-06-26T23:36:45.025641+00:00 app[web.1]: Processing by Api::PaymentMethodsController#create as JSON
2014-06-26T23:36:45.020846+00:00 app[web.1]: Started POST "/user/payment_methods.json" for 166.137.187.103 at 2014-06-26 23:36:45 +0000
2014-06-26T23:36:45.025859+00:00 app[web.1]: Parameters: {"payment_method"=>{"stripe_token"=>"tok_104INA2eZvKYlo2CXOcfszJD", "credit_card_last_four"=>4242, "expiration_month"=>10, "expiration_year"=>2016}}
2014-06-26T23:36:45.479305+00:00 app[web.1]: Completed 500 Internal Server Error in 453ms
2014-06-26T23:36:47.303123+00:00 heroku[router]: at=info method=POST path="/user/payment_methods.json" host=doblet.herokuapp.com request_id=9fd7ad35-5f81-48c8-828e-4af59eeaad6a fwd="166.137.187.103" dyno=web.1 connect=1ms service=2284ms status=500 bytes=317
2014-06-26T23:36:47.291797+00:00 app[web.1]:
2014-06-26T23:36:47.291805+00:00 app[web.1]: Stripe::InvalidRequestError (Invalid token id: tok_104INA2eZvKYlo2CXOcfszJD. The publishable key used to create this token is from a different account.):
2014-06-26T23:36:47.291808+00:00 app[web.1]: app/controllers/api/payment_methods_controller.rb:39:in `create'
2014-06-26T23:36:47.291809+00:00 app[web.1]:
2014-06-26T23:36:47.291811+00:00 app[web.1]: