Skip to content

Conversation

@Saptak88
Copy link
Collaborator

@Saptak88 Saptak88 commented Jan 27, 2026

Description

  • Added VerifyRedirectResponse. It handles redirect responses from connectors. It will perform source verification for redirect responses based on the connector configuration.

Other changes:

  • Removed router_data and generics from SourceVerification trait.

Motivation and Context

Additional Changes

  • This PR modifies the API contract
  • This PR modifies application configuration/environment variables

How did you test it?

Tested for Revolut connector with http curl

Request

curl -X POST http://localhost:8000/payments/verify_redirect_response \
  -H "Content-Type: application/json" \
  -H "x-tenant-id: tenant_123" \
  -H "x-connector: revolut" \
  -H "x-auth: header-key" \
  -H "x-api-key: test_key" \
  -H "x-merchant-id: test_merchant_revolut" \
  -H "x-request-id: req_$(date +%s)" \
  -H "x-lineage-ids: lineage_123" \
  -H "x-reference-id: ref_123" \
  -d '{
    "request_ref_id": {
      "id": "verify_redirect_req_123"
    },
    "request_details": {
      "method": 1,
      "uri": "/callback",
      "headers": {},
      "body": [],
      "query_params": ""
    }
  }'

Response

{"source_verified":false}

@Saptak88 Saptak88 requested review from a team as code owners January 27, 2026 05:59
@Saptak88 Saptak88 self-assigned this Jan 27, 2026
@Debarshi-Gupta
Copy link
Contributor

@Saptak88 Checks are failing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants