Skip to content

Add RoutingOptions to payment requests#310

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

Add RoutingOptions to payment requests#310
abalikci merged 2 commits intomasterfrom
routing-options

Conversation

@onurpolattimur
Copy link
Copy Markdown
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
@abalikci abalikci merged commit e95ae81 into master Apr 7, 2026
20 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