Skip to content

Add routingOptions to payment requests#183

Closed
onurpolattimur wants to merge 0 commit into
masterfrom
routing-options
Closed

Add routingOptions to payment requests#183
onurpolattimur wants to merge 0 commit into
masterfrom
routing-options

Conversation

@onurpolattimur
Copy link
Copy Markdown
Member

Summary

Add routingOptions array to payment requests to allow clients to specify routing preferences.

Changes

  • Add routingOptions array example to payment sample
  • Include orderingRule field with options: ON_US, LOW_COMMISSION_RATE, IN_ORDER
  • Include optional posAliases array for routing configuration

Technical Details

Since PHP client uses associative arrays for requests, the implementation adds an example in the sample file:

'routingOptions' => array(
    'orderingRule' => 'ON_US', // Options: ON_US, LOW_COMMISSION_RATE, IN_ORDER
    'posAliases' => array('pos1', 'pos2') // Optional: List of POS aliases
)

This pattern can be applied to all payment request types:

  • Create Payment
  • Create Deposit Payment
  • Init 3DS Payment
  • Init Checkout Payment

Test Plan

  • Test payment request with routingOptions
  • Test backward compatibility (requests without routingOptions)
  • Verify proper serialization to API

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