public function updateCard( CustomerVault\Card $card )
    {
        $card->setRequiredFields(array(
            'profileID',
            'id'
        ));
        $card->checkRequiredFields();
        $card->setRequiredFields(array());
        $card->setOptionalFields(array(
            'cardExpiry',
            'nickName',
            'merchantRefNum',
            'holderName',
            'billingAddressId',
            'defaultCardIndicator',
        ));

        $request = new Request(array(
            'method' => Request::PUT,
            'uri' => $this->prepareURI("/profiles/" . $card->profileID . "/cards/" . $card->id),
            'body' => $card
        ));
        $response = $this->client->processRequest($request);
        $response['profileID'] = $card->profileID;

        return new CustomerVault\Card($response);
    }
public function updateCard( CustomerVault\Card $card )
    {
        $card->setRequiredFields(array(
            'profileID',
            'id'
        ));
        $card->checkRequiredFields();
        $card->setRequiredFields(array());
        $card->setOptionalFields(array(
            'cardExpiry',
            'nickName',
            'merchantRefNum',
            'holderName',
            'billingAddressId',
            'defaultCardIndicator',
        ));

        $request = new Request(array(
            'method' => Request::PUT,
            'uri' => $this->prepareURI("/profiles/" . $card->profileID . "/cards/" . $card->id),
            'body' => $card
        ));
        $response = $this->client->processRequest($request);
        $response['profileID'] = $card->profileID;

        return new CustomerVault\Card($response);
    }
public function updateCard ( CustomerVault \ Card $ card ) { $ card -> setRequiredFields ( array ( 'profileID' , 'id' ) ) ; $ card -> checkRequiredFields ( ) ; $ card -> setRequiredFields ( array ( ) ) ; $ card -> setOptionalFields ( array ( 'cardExpiry' , 'nickName' , 'merchantRefNum' , 'holderName' , 'billingAddressId' , 'defaultCardIndicator' , ) ) ; $ request = new Request ( array ( 'method' => Request :: PUT , 'uri' => $ this -> prepareURI ( "/profiles/" . $ card -> profileID . "/cards/" . $ card -> id ) , 'body' => $ card ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; $ response [ 'profileID' ] = $ card -> profileID ; return new CustomerVault \ Card ( $ response ) ; }
Update card.

@param \Paysafe\CustomerVault\Card $card
@return \Paysafe\CustomerVault\Card
@throws PaysafeException
Update card .