src/Factory/ChargeRequest.php
public function setCardNumber($sCardNumber)
    {
        //  Validate
        if (preg_match('/[^\d ]/', $sCardNumber)) {
            throw new ChargeRequestException('Invalid card number; can only contain digits and spaces.', 1);

        }
        $this->oCard->number = $sCardNumber;
        return $this;
    }
public function setCardNumber($sCardNumber)
    {
        //  Validate
        if (preg_match('/[^\d ]/', $sCardNumber)) {
            throw new ChargeRequestException('Invalid card number; can only contain digits and spaces.', 1);

        }
        $this->oCard->number = $sCardNumber;
        return $this;
    }
public function setCardNumber ( $ sCardNumber ) { //  Validate if ( preg_match ( '/[^\d ]/' , $ sCardNumber ) ) { throw new ChargeRequestException ( 'Invalid card number; can only contain digits and spaces.' , 1 ) ; } $ this -> oCard -> number = $ sCardNumber ; return $ this ; }
Set the card's number

@param string $sCardNumber The card's number

@throws ChargeRequestException
@return $this
Set the card s number