Log in
Model

ScopeHeadersBuilder

Magento\PaymentServicesBase\Model\ScopeHeadersBuilder

What it does

This class builds HTTP headers for scope identification in payment service API requests.

Developers use it to attach 'x-scope-type' and 'x-scope-id' headers when making external API calls, ensuring the payment service knows whether the request is for a specific store view or website scope based on the configured multi-business account scoping level.

Public Methods

  • buildScopeHeaders()
  • buildScopeHeadersForCurrentStore()