src/Resource/Payment.php
public function setCreditCardHash($hash, Holder $holder, $store = true)
    {
        $this->data->fundingInstrument->method = self::METHOD_CREDIT_CARD;
        $this->data->fundingInstrument->creditCard = new stdClass();
        $this->data->fundingInstrument->creditCard->hash = $hash;
        $this->data->fundingInstrument->creditCard->store = $store;
        $this->setCreditCardHolder($holder);

        return $this;
    }
public function setCreditCardHash($hash, Holder $holder, $store = true)
    {
        $this->data->fundingInstrument->method = self::METHOD_CREDIT_CARD;
        $this->data->fundingInstrument->creditCard = new stdClass();
        $this->data->fundingInstrument->creditCard->hash = $hash;
        $this->data->fundingInstrument->creditCard->store = $store;
        $this->setCreditCardHolder($holder);

        return $this;
    }
public function setCreditCardHash ( $ hash , Holder $ holder , $ store = true ) { $ this -> data -> fundingInstrument -> method = self :: METHOD_CREDIT_CARD ; $ this -> data -> fundingInstrument -> creditCard = new stdClass ( ) ; $ this -> data -> fundingInstrument -> creditCard -> hash = $ hash ; $ this -> data -> fundingInstrument -> creditCard -> store = $ store ; $ this -> setCreditCardHolder ( $ holder ) ; return $ this ; }
Set credit cardHash.

@param string                  $hash   Credit card hash encripted using Moip.js
@param \Moip\Resource\Customer $holder
@param bool                    $store  Flag to know if credit card should be saved.

@return $this
Set credit cardHash .