Skip to content

Add RoutingOptions to payment requests#310

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

Add RoutingOptions to payment requests#310
onurpolattimur wants to merge 1 commit intomasterfrom
routing-options

Conversation

@onurpolattimur
Copy link
Member

Summary

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

Changes

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

Technical Details

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

Test Plan

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

@onurpolattimur onurpolattimur force-pushed the routing-options branch 2 times, most recently from de542c6 to 7f5ed73 Compare March 18, 2026 07:39
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