4 Replies Latest reply on May 12, 2016 1:43 PM by Steven English

    Multiple billing sources

    Scott Austed Newbie

      We use CBORD for our source of payment.  There has been some interest in pre-loading accounts with some amount of $$.  I know that we can add funds through the Pharos DB but how do you set it up so it uses funds in the Pharos DB before using the external bank CBORD?

        • Re: Multiple billing sources
          Steven English Guide

          Scott Austed,

           

          There is a script in the installation zip that will either be referenced as a multi-purse gateway script (older versions) or on the 9.0 R2 image you can find it in the path below.

          \tools\plugins\scripts\Billing - Pharos Accounts Plus Online Accounts.txt

           

          It would need to be added as a script, then that script would need to be assigned to the billing event of the bank you are using (typically the one assigned to the release station when using Secure Release/held print queues, and less commonly applied to the print server's bank when doing direct printing).  There is a bit more to it than that, but that is a good start.

           

          Any account set to arrears will be debited exclusively from the Pharos database, otherwise it will try to debit funds from the Pharos purses first, then go out to the online account.  The balance avilable will be a net sum of the three Pharos purses and the online account by default.

           

          Regards,

          Steven

          1 of 1 people found this helpful
            • Re: Multiple billing sources
              Scott Austed Newbie

              Steven,

               

              I found the script and after a little editing it works great!  Thank you much.

              • Re: Multiple billing sources
                Scott Austed Newbie

                Steven,

                 

                I'm also interested in using the BillingName - AddUser script.  Is it possible to add multiple scripts to a billing event in the bank, or should the multi-purse and AddUser scripts be combined into one?

                  • Re: Multiple billing sources
                    Steven English Guide

                    Scott Austed,

                     

                    Only one script can be applied at a time to any given plugin event.  If you want the features of the billing add user script, you would need to merge them with the multi-purse script.  If you open them in Notepad++, setting the syntax will highlight the code and allow you to easily collapse sections to more easily view the logic workflow.  Most - maybe even all - of the headers from the add user script will already be present in the multi-purse script.  The line numbers don't always match, but when you attempt to "compile" the script in the Pharos Administrator, it is pretty good about complaining in an informative fashion if you have a referenced variable that is missing (like an error string or var that is defined at the top of the script instead of in the body).  Good luck!

                     

                    Regards,

                    Steven