Manual Configuration

To get a better understanding of how the configuration works, instead of loading the example settings file, you can manually add each action.

 

Enable Reader

We want to enable the card reader when the photo booth is displaying the welcome.jpg screen and the card reader is disabled.

Firstly. ensure “Selection first/Always idle mode” is not selected and the “Mode:” dropdown list is set to “DSLR Remote Pro”. Then go to Settings > Add Action to create the action to enable the reader.

 

Name

Give the action a suitable name e.g. “Enable reader”.

 

Pattern

The “Pattern” trigger condition is set to a pattern that matches the photo booth screen e.g. welcome.jpg. The pattern string will match any part of the photo booth screen path unless Use Regular Expression is enabled.

 

For example, if your welcome.jpg screen path is: c:\events\profile1\welcome.jpg then the Pattern can be: welcome.jpg

If you are using multiple profiles, you can differentiate between the profiles by setting the pattern to: \profile1\welcome.jpg

More complex pattern matches can be defined by selecting Use regular expression and entering a regular expression such as .*welcome\.jpg for the pattern.

 

Reader State

We only want to enable the card reader if it is disabled (i.e. the state is INIT) and so we set the reader state in the trigger conditions to INIT.

 

Actions to Perform

Next we need to specify the action to take when the trigger conditions are met. In this case all we need to do is enable the card reader.

 

Save the Action

Click OK to save the action and the settings dialog should look something like this:

Click OK and the action should be triggered if the photo booth is displaying the welcome.jpg screen and the reader is disabled. The status log should show the action triggering, the reader’s screen change to the contactless payment animation and the state should change to IDLE:

 

Request Payment

When the user scans their card the state changes to CREDIT and we want to switch the photo booth from standby to ready and to request payment. To do this click on “Add action…” in the settings dialog and name the action “Request payment”. In the trigger conditions section set the pattern to welcome.jpg and the reader state to CREDIT.

Request Payment Amount

In the actions to perform section set the “Request payment, amount:” to the amount, e.g. for $1 set this to 100, and set the required product number. The product number can be set to anything and is recorded in the logs that can be accessed via the Nayax web dashboard. This can be useful if you have different options at different prices and want to keep a record of which is selected.

Wake the Photo Booth

We also want to wake up the photo booth by setting the “Send photo booth command” dropdown list to “Switch from standby to ready”.

The “Add action” dialog should look something like this:

Results

When the payment has been requested the status changes to VEND. If the payment is authorized the status will change to RESULT but if it fails it will change to IDLE.

Payment Authorized

Add RESULT Action

Define a new action named “Payment authorized” that is triggered when the photo booth is displaying the ready.jpg screen and the reader state is RESULT. In the actions to perform section set the photo booth command to “Start photobooth”.

The “Add action” dialog should look something like this:

Payment Failed

If the payment is not authorized the state changes to IDLE and we want to switch to standby mode to display the welcome.jpg screen.

Add the IDLE Action

Define a new action named “Payment failed” that is triggered when the photo booth is displaying the ready.jpg screen and the reader state is IDLE. In the actions to perform section set the photo booth command to “Switch from ready to standby”.

The “Add action” dialog should look something like this:

The settings screen should show all four actions and look something like this:

Check it works

Click “OK” in the settings screen to return to the main screen. Then scan a credit card (or the Nayax technician mode card) to start a payment. The photo booth should switch to the ready screen, wait for the payment to be authorized and then start the countdown. At the end of the session it should return to the welcome.jpg screen.
The main screen should look something like this: