Checks all fields to make sure this is a valid transaction. If there is
an error, returns the error, otherwise returns false. Called by the insert
Checks all fields to make sure this is a valid transaction. If there is
an error, returns the error, otherwise returns false. Called by the insert
- #$error = FS::payby::payinfo_check($self->payby, \$self->payinfo);
- #return $error if $error;
+ $error = FS::payby::payinfo_check($self->payby, \$self->payinfo);
+ return $error if $error;