models/PaymentForm.php
/**
     * @return array the validation rules.
     */
@return array the validation rules.
@return array the validation rules .
public function rules()
    {
        return [
            [['email', 'birthday', 'amount'], 'required','message'=>'Enter gift info'],
            [['billingFirstName', 'billingLastName', 'billingAddress1', 'billingCity', 'billingPostcode', 'billingCountry'], 'required','message'=>'Enter delivery info'],
            [['number', 'cvv', 'expiryMonth', 'expiryYear'], 'number','message'=>'Enter Card info'],
            ['$email', 'email']
        ];
    }
public function rules ( ) { return [ [ [ 'email' , 'birthday' , 'amount' ] , 'required' , 'message' => 'Enter gift info' ] , [ [ 'billingFirstName' , 'billingLastName' , 'billingAddress1' , 'billingCity' , 'billingPostcode' , 'billingCountry' ] , 'required' , 'message' => 'Enter delivery info' ] , [ [ 'number' , 'cvv' , 'expiryMonth' , 'expiryYear' ] , 'number' , 'message' => 'Enter Card info' ] , [ '$email' , 'email' ] ] ; }
@return array the validation rules.
@return array the validation rules .
/*   [['billingCountry'],'required','max' => 2],*/