src/base/Gateway.php
public function populateCard($card, CreditCardPaymentForm $paymentForm)
    {
        if (!$card instanceof CreditCard) {
            return;
        }

        $card->setFirstName($paymentForm->firstName);
        $card->setLastName($paymentForm->lastName);
        $card->setNumber($paymentForm->number);
        $card->setExpiryMonth($paymentForm->month);
        $card->setExpiryYear($paymentForm->year);
        $card->setCvv($paymentForm->cvv);
    }
public function populateCard($card, CreditCardPaymentForm $paymentForm)
    {
        if (!$card instanceof CreditCard) {
            return;
        }

        $card->setFirstName($paymentForm->firstName);
        $card->setLastName($paymentForm->lastName);
        $card->setNumber($paymentForm->number);
        $card->setExpiryMonth($paymentForm->month);
        $card->setExpiryYear($paymentForm->year);
        $card->setCvv($paymentForm->cvv);
    }
public function populateCard ( $ card , CreditCardPaymentForm $ paymentForm ) { if ( ! $ card instanceof CreditCard ) { return ; } $ card -> setFirstName ( $ paymentForm -> firstName ) ; $ card -> setLastName ( $ paymentForm -> lastName ) ; $ card -> setNumber ( $ paymentForm -> number ) ; $ card -> setExpiryMonth ( $ paymentForm -> month ) ; $ card -> setExpiryYear ( $ paymentForm -> year ) ; $ card -> setCvv ( $ paymentForm -> cvv ) ; }
Populate a credit card from the paymnent form.

@param CreditCard            $card        The credit card to populate.
@param CreditCardPaymentForm $paymentForm The payment form.

@return void
Populate a credit card from the paymnent form .