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

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

        return $this;
    }
public function setCreditCard ( $ expirationMonth , $ expirationYear , $ number , $ cvc , Holder $ holder , $ store = true ) { $ this -> data -> fundingInstrument -> method = self :: METHOD_CREDIT_CARD ; $ this -> data -> fundingInstrument -> creditCard = new stdClass ( ) ; $ this -> data -> fundingInstrument -> creditCard -> expirationMonth = $ expirationMonth ; $ this -> data -> fundingInstrument -> creditCard -> expirationYear = $ expirationYear ; $ this -> data -> fundingInstrument -> creditCard -> number = $ number ; $ this -> data -> fundingInstrument -> creditCard -> cvc = $ cvc ; $ this -> data -> fundingInstrument -> creditCard -> store = $ store ; $ this -> setCreditCardHolder ( $ holder ) ; return $ this ; }
Set credit card
Credit card used in a payment.
The card when returned within a parent resource is presented in its minimum representation.

@param int                     $expirationMonth Card expiration month
@param int                     $expirationYear  Year of card expiration.
@param string                  $number          Card number.
@param int                     $cvc             Card Security Code.
@param \Moip\Resource\Customer $holder
@param bool                    $store           Flag to know if credit card should be saved.

@return $this
Set credit card Credit card used in a payment . The card when returned within a parent resource is presented in its minimum representation .