#hoenth-oauth

1 messages · Page 1 of 1 (latest)

covert hearth
#

hello, what does this mean:

request.env (i.e. email and account identifier), belong to a different account.

can you share what acct_id you were expecting vs what you got back?

also, any request IDs you can share? those would be helpful

left peak
#

When the customer is redirected back to our application after successfully connecting their account, our app is provided with the details of the connected account in a request.env["omniauth.auth"] object.

#

The contents of that look something like this:

{
  "provider"=>"stripe_connect",
  "uid"=>"<STRIPE_USER_ID>",
  "info"=> {
    "email"=>"email@example.com",
    "name"=>"Name",
    "nickname"=>"Nickname",
    "scope"=>"read_write", # or "read_only"
    "livemode"=>false,
    "stripe_publishable_key"=>"<STRIPE_PUBLISHABLE_KEY>",
  },
  "credentials"=> {
    "token"=>"<STRIPE_ACCESS_TOKEN>",
    "refresh_token"=>"<STRIPE_REFRESH_TOKEN>",
    "expires"=>false
  },
  "extra"=> {
    "raw_info"=> {
      "token_type"=>"bearer",
      "stripe_user_id"=>"<STRIPE_USER_ID>",
      "scope"=>"read_only",
      "stripe_publishable_key"=>"<STRIPE_PUBLISHABLE_KEY>",
      "livemode"=>false
    },
    "extra_info"=> {
      "business_logo"=>"https://stripe.com/business_logo.png",
      "business_name"=>"Business Name",
      "business_url"=>"example.com",
      "charges_enabled"=>true,
      "country"=>"US",
      "default_currency"=>"eur",
      "details_submitted"=>true,
      "display_name"=>"Business Name",
      "email"=>"email@example.com",
      "id"=>"<STRIPE_USER_ID>",
      "managed"=>false,
      "object"=>"account",
      "statement_descriptor"=>"EXAMPLE.COM",
      "support_email"=>"support@example.com",
      "support_phone"=>"123456789",
      "timezone"=>"Europe/Berlin",
      "transfers_enabled"=>true
    }
  }
}```
#

I can give you the account ID of the account that we ultimate receive. It is acct_14Jcxt4owOhPwQxN. I have asked the customer to lookup the account id of the account he is trying to connect.

#

I do have the email addresses associated with both accounts, if that helps.

#

I apologize, but I'm not clear on what you mean by "request_id"

covert hearth
#

all good, thanks for the explanation, what is the other account ID, you can share that here too

left peak
#

I have asked the customer to look it up. All I currently have is the email address

#

Unfortunately, it appears that the customer is not available right now. Would it be ok to come back later (tomorrow?) with that information?

covert hearth
#

sure