#lewis-sequence

1 messages ยท Page 1 of 1 (latest)

ember spadeBOT
daring citrus
#

๐Ÿ‘‹ happy to help

hot skiff
#

Hmm, I don't see the logs for OAuth requests in the developer dashboard.

The ID for the curl request I made is: req_W1LASR5rvlRTT1

The TokenResponse value I see with the Java SDK is:

  "livemode": false,
  "scope": "read_write",
  "stripe_user_id": "acct_..."
}
daring citrus
#

let me take a look

#

the request ID is not correct

#

would you mind double checking?

hot skiff
#

the Request-Id header for my curl request was req_W1LASR5rvlRTT1

#

How would the stripe_user_id be used for authentication?

It was a deliberate decision to leave out those fields, as there's basically no reason for a new Connect integration to not use the stripe_user_id field for everything.

obsidian geode
#

yep we don't put those fields in the model object since OAuth is deprecated

#

there are ways to get them from the raw JSON if needed, but what are you really trying to do? is this for Standard accounts or Express?

#

well to be clear, it's more that that way of authenticating is deprecated

hot skiff
#

Standard accounts. I looked at using Account Links rather than OAuth, but we're expecting to connect with existing accounts for some customers. It looked like Account Links could only be used if the platform created the account first.

obsidian geode
#

you never need those keys

obsidian geode
# hot skiff Standard accounts. I looked at using Account Links rather than OAuth, but we're ...

that's true, but also in general we mostly intend for you to not connect to existing accounts(if you need to for read-only purposes like data analysis you'd create a Stripe App), and for payment/write flows you use an AccountLink and the user has a new Stripe account under their user and your platform uses that new account instead of their existing one(to keep the data properly split between platforms) https://support.stripe.com/questions/legal-entity-sharing

hot skiff
#

Makes sense, I did wonder if the AccountLink approach was to encourage creating new accounts for read/write purposes.

Thanks for the info! We'll review how we approach things.

obsidian geode
#

either way you definitely don't need or want the access_token

#

since then you have to store that and keep it safe for every single account, and then if you ever lose that key it's a hassle to recreate(you need the refresh token and you might not have that either). They're totally legacy and you would use the Stripe-Account header always now instead, which only requires you to store your own platform key(which you can manage in your dashboard) and know the ID of the account

hot skiff
#

Understood ๐Ÿ‘