{"action":"created","issue":{"url":"https://api.github.com/repos/solidusio/solidus_braintree/issues/37","repository_url":"https://api.github.com/repos/solidusio/solidus_braintree","labels_url":"https://api.github.com/repos/solidusio/solidus_braintree/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/solidusio/solidus_braintree/issues/37/comments","events_url":"https://api.github.com/repos/solidusio/solidus_braintree/issues/37/events","html_url":"https://github.com/solidusio/solidus_braintree/issues/37","id":156413699,"number":37,"title":"Guest checkout tries to create a customer profile","user":{"login":"niceking","id":4241125,"avatar_url":"https://avatars.githubusercontent.com/u/4241125?v=3","gravatar_id":"","url":"https://api.github.com/users/niceking","html_url":"https://github.com/niceking","followers_url":"https://api.github.com/users/niceking/followers","following_url":"https://api.github.com/users/niceking/following{/other_user}","gists_url":"https://api.github.com/users/niceking/gists{/gist_id}","starred_url":"https://api.github.com/users/niceking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niceking/subscriptions","organizations_url":"https://api.github.com/users/niceking/orgs","repos_url":"https://api.github.com/users/niceking/repos","events_url":"https://api.github.com/users/niceking/events{/privacy}","received_events_url":"https://api.github.com/users/niceking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-24T03:40:37Z","updated_at":"2016-05-24T18:43:15Z","closed_at":null,"body":"When using the braintree integration in the admin backend, it tries (and fails) to create a customer profile when checking out as guest, as there is no user attached to the order. Is this intended behaviour?"},"comment":{"url":"https://api.github.com/repos/solidusio/solidus_braintree/issues/comments/221365300","html_url":"https://github.com/solidusio/solidus_braintree/issues/37#issuecomment-221365300","issue_url":"https://api.github.com/repos/solidusio/solidus_braintree/issues/37","id":221365300,"user":{"login":"hectoregm","id":7404,"avatar_url":"https://avatars.githubusercontent.com/u/7404?v=3","gravatar_id":"","url":"https://api.github.com/users/hectoregm","html_url":"https://github.com/hectoregm","followers_url":"https://api.github.com/users/hectoregm/followers","following_url":"https://api.github.com/users/hectoregm/following{/other_user}","gists_url":"https://api.github.com/users/hectoregm/gists{/gist_id}","starred_url":"https://api.github.com/users/hectoregm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectoregm/subscriptions","organizations_url":"https://api.github.com/users/hectoregm/orgs","repos_url":"https://api.github.com/users/hectoregm/repos","events_url":"https://api.github.com/users/hectoregm/events{/privacy}","received_events_url":"https://api.github.com/users/hectoregm/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T18:43:15Z","updated_at":"2016-05-24T18:43:15Z","body":"I am not the maintainer but I have been working with this extension a lot, right now I did a checkout using a guest in both the frontend and backend and it just works (using master branch). What version you are using and what is the stack trace you are seeing ?.\r\n\r\n\r\n```ruby\r\n[39] pry(main)> Spree::Order.last.user\r\n  Spree::Order Load (0.7ms)  SELECT  \"spree_orders\".* FROM \"spree_orders\"  ORDER BY \"spree_orders\".\"id\" DESC LIMIT 1\r\n=> nil\r\n[40] pry(main)> Spree::Order.last.payments.first.source.gateway_payment_profile_id\r\n  Spree::Order Load (0.6ms)  SELECT  \"spree_orders\".* FROM \"spree_orders\"  ORDER BY \"spree_orders\".\"id\" DESC LIMIT 1\r\n  Spree::Payment Load (0.3ms)  SELECT  \"spree_payments\".* FROM \"spree_payments\" WHERE \"spree_payments\".\"order_id\" = $1  ORDER BY \"spree_payments\".\"created_at\" ASC LIMIT 1  [[\"order_id\", 3]]\r\n  Spree::CreditCard Load (0.3ms)  SELECT  \"spree_credit_cards\".* FROM \"spree_credit_cards\" WHERE \"spree_credit_cards\".\"id\" = $1 LIMIT 1  [[\"id\", 3]]\r\n=> \"992s6g\"\r\n[41] pry(main)> Spree::Order.last.payments.first.source.user_id\r\n  Spree::Order Load (0.6ms)  SELECT  \"spree_orders\".* FROM \"spree_orders\"  ORDER BY \"spree_orders\".\"id\" DESC LIMIT 1\r\n  Spree::Payment Load (0.3ms)  SELECT  \"spree_payments\".* FROM \"spree_payments\" WHERE \"spree_payments\".\"order_id\" = $1  ORDER BY \"spree_payments\".\"created_at\" ASC LIMIT 1  [[\"order_id\", 3]]\r\n  Spree::CreditCard Load (0.3ms)  SELECT  \"spree_credit_cards\".* FROM \"spree_credit_cards\" WHERE \"spree_credit_cards\".\"id\" = $1 LIMIT 1  [[\"id\", 3]]\r\n=> nil\r\n```"}}
{"actor":{"display_login":"hectoregm"}}