#AndreiCrudu-connect
1 messages ยท Page 1 of 1 (latest)
thank you
Do you mind sharing the code that resulted in this error?
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
Was this working for you before?
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
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?
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.