Braintree\Configuration::merchantPath PHP Method

merchantPath() public method

sets the merchant path based on merchant ID
public merchantPath ( ) : string
return string merchant path uri
    public function merchantPath()
    {
        return '/merchants/' . $this->_merchantId;
    }

Usage Example

 /**
  * sends the create request to the gateway
  * @ignore
  * @param string $subPath
  * @param array $params
  * @return mixed
  */
 private function _doCreate($subPath, $params)
 {
     $fullPath = $this->_config->merchantPath() . $subPath;
     $response = $this->_http->post($fullPath, $params);
     return $this->_verifyGatewayResponse($response);
 }