Konica Minolta bizhub 28e bizhub 28e PaperCut IU Embedded Manual - Page 22

Card Self-Association

Page 22 highlights

Using custom JavaScript If the inbuilt converter functions are unable to meet requirements, it is possible to define your own function using JavaScript. This is an advanced exercise and it is expected that any implementer be familiar with programming and JavaScript. To implement your own converter: 1. Create a file text file [app-path]/server/custom/card.js 2. Define a single JavaScript function in this file called "convert" It should accept and return a single string. Here is a trivial example: function convert(cardNumber) { return cardNumber.substring(3,10).toLowerCase(); } 3. Enter a converter in the form: javascript:custom/card.js Tip: Check the file [install-path]/server/log/server.log when testing. Any scripting errors will be displayed as warning messages in the log. Tip: A Javascript script may also be included in the pipeline. For example ascii-enc|hex2dec|javascript:custom/card.js Other advanced notes  If both a regular expression and a converter are defined, the regular expression is applied first. This means a regular expression can be used to clean up the input (e.g. remove checksum or delimiters) before passing to a converter.  In some special situations, a custom JavaScript implementation may not be enough. For example, there may be a requirement to use a 3rd party system to decrypt the number. PaperCut includes an advanced plugin architecture that the PaperCut Software development team uses to implement these advanced converters. Please contact support to discuss development options and costs. 5.2 Card Self-Association Card self-association allows users to associate their card, or a new card, with their domain account directly at the device. 5.2.1 Card Self-Association Workflow The process is as follows: 1. The user swipes their card at a device. 2. The device gives the user the option to associate their card with their account. The user will be prompted to enter their domain user name and password. 21 of 27 Copyright © 2019 KONICA MINOLTA BUSINESS SOLUTIONS U.S.A., INC. All Rights Reserved 06/2019

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

21 of 27
Using custom JavaScript
If the inbuilt converter functions are unable to meet requirements, it is possible to define your
own function using JavaScript.
This is an advanced exercise and it is expected that any
implementer be familiar with programming and JavaScript.
To implement your own
converter:
1.
Create a file text file [app-path]/server/custom/card.js
2.
Define a single JavaScript function in this file called “convert” It should accept and
return a single string.
Here is a trivial example:
function convert(cardNumber) {
return cardNumber.substring(3,10).toLowerCase();
}
3.
Enter a converter in the form:
javascript:custom/card.js
Tip:
Check the file [install-path]/server/log/server.log when testing.
Any scripting errors will
be displayed as warning messages in the log.
Tip
: A Javascript script may also be included in the pipeline. For example
ascii-enc|hex2dec|javascript:custom/card.js
Other advanced notes
If
both
a regular expression and a converter are defined, the regular expression is
applied first.
This means a regular expression can be used to clean up the input (e.g.
remove checksum or delimiters) before passing to a converter.
In some special situations, a custom JavaScript implementation may not be enough.
For example, there may be a requirement to use a 3rd party system to decrypt the
number.
PaperCut includes an advanced plugin architecture that the PaperCut
Software development team uses to implement these advanced converters.
Please
contact support to discuss development options and costs.
5.2 Card Self-Association
Card self-association allows users to associate their card, or a new card, with
their
domain account directly at the device.
5.2.1
Card Self-Association Workflow
The process is as follows:
1.
The user swipes their card at a device.
2.
The device gives the user the option to associate their card with their account. The
user will be prompted to enter their domain user name and password.
Copyright © 201
9
KONICA MINOLTA BUSINESS SOLUTIONS U.S.A., INC. All Rights Reserved
06/2019