SEPASDD::validateDDType PHP Method

validateDDType() public static method

Function to validate the Direct Debit Transaction types
public static validateDDType ( $type ) : True
return True if valid, error string if invalid.
    public static function validateDDType($type)
    {
        $types = array("FRST", "RCUR", "FNAL", "OOFF");
        if (in_array($type, $types)) {
            return true;
        } else {
            return $type . " is not a valid Sepa Direct Debit Transaction Type.";
        }
    }