Skip to content

Add routing_options to payment requests#26

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

Add routing_options to payment requests#26
abalikci merged 2 commits intomasterfrom
routing-options

Conversation

@onurpolattimur
Copy link
Copy Markdown
Member

Summary

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

Changes

  • Add RoutingOptions class with OrderingRule enum (ON_US, LOW_COMMISSION_RATE, IN_ORDER) and pos_aliases field
  • Add routing_options parameter to:
    • CreatePaymentRequest
    • CreateDepositPaymentRequest
    • InitThreeDSPaymentRequest (inherits from CreatePaymentRequest)
    • InitCheckoutPaymentRequest

Technical Details

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

Test Plan

  • Verify module imports
  • Test payment request creation with routing_options
  • Test backward compatibility (requests without routing_options)
  • Verify serialization/deserialization

@abalikci abalikci merged commit a38bdd5 into master Apr 7, 2026
6 checks passed
@abalikci abalikci deleted the routing-options branch April 7, 2026 07:51
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