Square
Square OAuth callback
GET
Square redirects the popup here; do not call it directly. On success the page posts
{ type: 'SQUARE_OAUTH_SUCCESS', buId, terminalId, merchantId } to window.opener
and closes after 2 seconds.
code?stringstate?stringerror?stringSet by Square when the merchant declines.
error_description?stringSuccess page.
response?stringtext/htmlcurl -X GET "https://example.com/square/oauth/callback""string"