Skip to content

Add routing_options to payment requests#26

Open
onurpolattimur wants to merge 1 commit intomasterfrom
routing-options
Open

Add routing_options to payment requests#26
onurpolattimur wants to merge 1 commit intomasterfrom
routing-options

Conversation

@onurpolattimur
Copy link
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

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.

1 participant