TrieOH
PayssageAPIOauth

Payment-provider OAuth callback

Browser redirect target: the provider lands here after the user authorizes. Payssage exchanges the code, stores the provider credential, and redirects the browser to the `final_redirect_url` captured at connect time. Public — the provider's OAuth flow cannot send an Authorization header.

GET/providers/{provider}/callback

Browser redirect target: the provider lands here after the user authorizes. Payssage exchanges the code, stores the provider credential, and redirects the browser to the final_redirect_url captured at connect time. Public — the provider's OAuth flow cannot send an Authorization header.

Path Parameters

provider*string

Payment provider slug (e.g. mercadopago).

Query Parameters

code*string

Authorization code issued by the provider.

state*string

CSRF state issued at connect time.

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/providers/string/callback?code=string&state=string"
"http://example.com"
{
  "detail": "string",
  "instance": "../dictionary",
  "errors": [
    {
      "field": "string",
      "message": "string"
    }
  ],
  "type": "http://example.com",
  "status": 400,
  "title": "Validation Failed"
}