src/Payments/Resources/Payments.php
public function setCreditCard(CreditCard $creditCard)
    {
        $creditCard->setContext(Moip::PAYMENT);
        $this->data->fundingInstrument->method = self::METHOD_CREDIT_CARD;
        $this->data->fundingInstrument->creditCard = $creditCard->getData();
        //$this->setCreditCardHolder($holder);

        return $this;
    }
public function setCreditCard(CreditCard $creditCard)
    {
        $creditCard->setContext(Moip::PAYMENT);
        $this->data->fundingInstrument->method = self::METHOD_CREDIT_CARD;
        $this->data->fundingInstrument->creditCard = $creditCard->getData();
        //$this->setCreditCardHolder($holder);

        return $this;
    }
public function setCreditCard ( CreditCard $ creditCard ) { $ creditCard -> setContext ( Moip :: PAYMENT ) ; $ this -> data -> fundingInstrument -> method = self :: METHOD_CREDIT_CARD ; $ this -> data -> fundingInstrument -> creditCard = $ creditCard -> getData ( ) ; //$this->setCreditCardHolder($holder); return $ this ; }
Set a credit card

@param  \Softpampa\Moip\Helpers\CreditCard  $creditCard
@return $this
Set a credit card