public function setPaymentOptions($payKey, $receivers)
    {
        $this->post = $this->setRequestData([
            'requestEnvelope' => $this->setEnvelope(),
            'payKey'          => $payKey,
        ])->merge([
            'receiverOptions' => $this->setPaymentOptionsReceiverDetails($receivers),
        ]);

        return $this->doPayPalRequest('SetPaymentOptions');
    }
public function setPaymentOptions($payKey, $receivers)
    {
        $this->post = $this->setRequestData([
            'requestEnvelope' => $this->setEnvelope(),
            'payKey'          => $payKey,
        ])->merge([
            'receiverOptions' => $this->setPaymentOptionsReceiverDetails($receivers),
        ]);

        return $this->doPayPalRequest('SetPaymentOptions');
    }
public function setPaymentOptions ( $ payKey , $ receivers ) { $ this -> post = $ this -> setRequestData ( [ 'requestEnvelope' => $ this -> setEnvelope ( ) , 'payKey' => $ payKey , ] ) -> merge ( [ 'receiverOptions' => $ this -> setPaymentOptionsReceiverDetails ( $ receivers ) , ] ) ; return $ this -> doPayPalRequest ( 'SetPaymentOptions' ) ; }
Function to perform Adaptive Payments API's SetPaymentOptions operation.

@param string $payKey
@param array  $receivers

@return array
Function to perform Adaptive Payments API s SetPaymentOptions operation .