Skip to content

Add RoutingOptions to payment requests - #304

Merged
abalikci merged 2 commits into
masterfrom
routing-options
Apr 7, 2026
Merged

Add RoutingOptions to payment requests#304
abalikci merged 2 commits into
masterfrom
routing-options

Conversation

@onurpolattimur

@onurpolattimur onurpolattimur commented Mar 18, 2026

Copy link
Copy Markdown
Member

Summary

Add RoutingOptions DTO to payment requests to allow clients to specify routing preferences.

Changes

  • Add RoutingOptions DTO with OrderingRule enum (ON_US, LOW_COMMISSION_RATE, IN_ORDER) and posAliases field
  • Add routingOptions field to:
    • CreatePaymentRequest
    • CreateDepositPaymentRequest
    • InitThreeDSPaymentRequest (inherited from CreatePaymentRequest)
    • InitCheckoutPaymentRequest

Technical Details

  • OrderingRule enum values: ON_US, LOW_COMMISSION_RATE, IN_ORDER
  • posAliases: Optional list of POS aliases for routing configuration
  • All fields are optional to maintain backward compatibility

Test Plan

  • Verify compilation
  • Test payment request creation with routingOptions
  • Test backward compatibility (requests without routingOptions)
  • Verify serialization/deserialization

@abalikci
abalikci merged commit a23ef64 into master Apr 7, 2026
2 checks passed
@abalikci
abalikci deleted the routing-options branch April 7, 2026 07:49
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.

2 participants