nov / square

Square API Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client requires a Redirect URL to use OAuth

chebyte opened this issue · comments

hi guys when I tried to run the url that returns this code

client = Square::OAuth2::Client.new(
  '<your-client-id>',
  '<your-client-secret>',
  redirect_uri: 'https://client.example.com/callback'
)

I get the error

Client requires a Redirect URL to use OAuth

the url that I get is

https://squareup.com/oauth2/authorize?client_id=CLIENTID&redirect_uri=redirect_url&response_type=code

anyone knows why?

The redirect_uri isn't registered to Square API dashboard?
Probably asking Square developer support is better for this kind of questions.

yeap I forget it, thanks!

misleading error message!