public function getPaymentOptions($payKey, $details = false)
    {
        $operation = ($details) ? 'PaymentDetails' : 'GetPaymentOptions';

        $this->setRequestData([
            'requestEnvelope' => $this->setEnvelope(),
            'payKey'          => $payKey,
        ]);

        return $this->doPayPalRequest($operation);
    }
public function getPaymentOptions($payKey, $details = false)
    {
        $operation = ($details) ? 'PaymentDetails' : 'GetPaymentOptions';

        $this->setRequestData([
            'requestEnvelope' => $this->setEnvelope(),
            'payKey'          => $payKey,
        ]);

        return $this->doPayPalRequest($operation);
    }
public function getPaymentOptions ( $ payKey , $ details = false ) { $ operation = ( $ details ) ? 'PaymentDetails' : 'GetPaymentOptions' ; $ this -> setRequestData ( [ 'requestEnvelope' => $ this -> setEnvelope ( ) , 'payKey' => $ payKey , ] ) ; return $ this -> doPayPalRequest ( $ operation ) ; }
Function to perform Adaptive Payments API's GetPaymentOptions operation.

@param string $payKey
@param bool   $details

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