Can I create a visitor account in "Arrears"?
  • 01 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Can I create a visitor account in "Arrears"?

  • Dark
    Light
  • PDF

Article summary

When we add a Visitor patron from the Nerve Center it creates the accounts with "Advanced" billing - is it possible to create a Visitor account in "Arrears" ?


Visitors are created using the CreateVisitorPatron function in VisitorPatrons.asp. At the start of VisitorPatrons.asp is the following function:

function CreateVisitorPatron( LogonId, Group, LastName, FirstNames, Password )
{
var User = SignUpGlobals.GetPsUser();

User.LogonId = ( null == LogonId ? "" : LogonId );
User.Group = ( null == Group ? "" : Group );
User.LastName = ( null == LastName ? "" : LastName );
User.FirstName = ( null == FirstNames ? "" : FirstNames );
User.Password = ( null == Password ? "" : Password );

// If this throws an exception it will be propagated to the caller.
User.CreateAsVisitor( SignUp.Credentials );

return true;
}

To create Visitor patrons with Arrears billing, modify the function to look like this:

function CreateVisitorPatron( LogonId, Group, LastName, FirstNames, Password )
{
var User = SignUpGlobals.GetPsUser();

User.LogonId = ( null == LogonId ? "" : LogonId );
User.Group = ( null == Group ? "" : Group );
User.LastName = ( null == LastName ? "" : LastName );
User.FirstName = ( null == FirstNames ? "" : FirstNames );
User.Password = ( null == Password ? "" : Password );
User.BillingOption = "Arrears";

// If this throws an exception it will be propagated to the caller.
User.CreateAsVisitor( SignUp.Credentials );

return true;
}


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.