public function putAdvocatePaymentMethod($strAccountSlug, $strAdvocateToken, $intAdvocatePaymentMethodId, array $arrParams) {
        $objWebClient = $this->getWebClient();

        $strUri = $this->getApiUrl() . '/accounts/' . $strAccountSlug . '/advocates/' . $strAdvocateToken . '/payment-methods/' . $intAdvocatePaymentMethodId;
        $arrHeaders = $this->getHeaders();

        $objRequest = $objWebClient->put($strUri, $arrHeaders, $arrParams);

        $this->objResponse = $objRequest->send();

        return $this->objResponse;
    }
public function putAdvocatePaymentMethod($strAccountSlug, $strAdvocateToken, $intAdvocatePaymentMethodId, array $arrParams) {
        $objWebClient = $this->getWebClient();

        $strUri = $this->getApiUrl() . '/accounts/' . $strAccountSlug . '/advocates/' . $strAdvocateToken . '/payment-methods/' . $intAdvocatePaymentMethodId;
        $arrHeaders = $this->getHeaders();

        $objRequest = $objWebClient->put($strUri, $arrHeaders, $arrParams);

        $this->objResponse = $objRequest->send();

        return $this->objResponse;
    }
public function putAdvocatePaymentMethod ( $ strAccountSlug , $ strAdvocateToken , $ intAdvocatePaymentMethodId , array $ arrParams ) { $ objWebClient = $ this -> getWebClient ( ) ; $ strUri = $ this -> getApiUrl ( ) . '/accounts/' . $ strAccountSlug . '/advocates/' . $ strAdvocateToken . '/payment-methods/' . $ intAdvocatePaymentMethodId ; $ arrHeaders = $ this -> getHeaders ( ) ; $ objRequest = $ objWebClient -> put ( $ strUri , $ arrHeaders , $ arrParams ) ; $ this -> objResponse = $ objRequest -> send ( ) ; return $ this -> objResponse ; }
Update a payment method.

@param string $strAccountSlug. The client account slug
@param string $strAdvocateToken. The advocate token
@param integer $intAdvocatePaymentMethodId The payment method id
@param array $arrParams
Request Format All parameters in the content of the request are mandatory.
{
"advocate_payment_method":{
"username":"advocate_at_email.com",
"description":"My main paypal account",
"is_active": true
}
}
@return string
Update a payment method .