#AndreiCrudu-connect

1 messages ยท Page 1 of 1 (latest)

errant grove
#

Hello! Let me take a look

still sleet
#

thank you

errant grove
#

Do you mind sharing the code that resulted in this error?

still sleet
#

this is the URL we generate and redirect to so as to connect the account:

#

the client_id is present in the params, the problem is that when we get the response it complains that we've sent over just client as a param, without the _id

errant grove
#

Was this working for you before?

still sleet
#

it was working but we've found the fix for it now

#

deep in our code we were making a call using just client as a param, we just added _id to it and it now works again

vernal briar
#

Old code which was working until (we think) today:

Stripe::OAuth.token(
  grant_type: :authorization_code,
  code: params[:code],
  client: stripe_client
)

We fixed it just now by changing that client param to client_id:

Stripe::OAuth.token(
  grant_type: :authorization_code,
  code: params[:code],
  client_id: stripe_client
)
#

The Stripe docs say the param name should be client_id, so I'm not sure why it was working previously. As far as we can tell, maybe Stripe used to accept client as well as client_id, but no longer does?

vocal mulch
#

Hello ๐Ÿ‘‹
Taking over for Karbi here. I'm glad it works now.
It is possible that we had this parameter built but we never surfaced it publicly and a recent change may have changed its behavior.

vernal briar
#

๐Ÿ˜…

#

ok