# Manual Configuration ## Manual Configuration To get a better understanding of how the configuration works, instead of loading the [example settings](https://www.breezesoftware.com/help/payments/example-events) file, you can manually add each action. - [Enable Reader](https://www.breezesoftware.com/help/payments/manual-configuration-rp-a-ex1#enable-reader) - [Request Payment](https://www.breezesoftware.com/help/payments/manual-configuration-rp-a-ex1#request-payment) - [Payment Authorized](https://www.breezesoftware.com/help/payments/manual-configuration-rp-a-ex1#payment-authorized) - [Payment Failed](https://www.breezesoftware.com/help/payments/manual-configuration-rp-a-ex1#payment-failed) --- ## 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. ![Mdb rp ex1 enable reader](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-84942e3f4e.webp) --- #### Name Give the action a suitable name e.g. "Enable reader". ![Mdb rp ex1 enable reader name](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-137bf2cc5d.webp) --- #### 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. ![Mdb rp ex1 enable reader pattern](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-7a7556612a.webp) --- 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. > **Info** > > [Chat GPT](https://chat.openai.com/) and [Claude](https://claude.ai/) are useful tools for helping with Regular Expressions --- #### 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. ![Mdb rp ex1 enable reader state](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-fd861f96df.webp) --- #### 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. ![Mdb rp ex1 enable reader action](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-b1d68490b0.webp) --- #### Save the Action Click OK to save the action and the settings dialog should look something like this: ![Mdb rp ex1 enable reader settings](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-bc191a20f4.webp) 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: ![Mdb status](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-5efdb64c88.webp) --- ### 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. ![Mdb rp ex1 enable payment](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-bcf356d64f.webp) #### 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. > **Info** > > the amount is in cents for USD or Euros and pence for GBP. This is because the scale factor is 1 and the decimal places is 2 in the MDB status shown in the main screen. #### 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: ![Mdb add action step 2](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-241a1655d5.webp) #### 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: ![Mdb add action step 3](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-b769f75768.webp) > **Info** > > defining an action that is triggered by the RESULT state automatically sends a confirmation message to the reader which will display a "Thank you" screen and then switch to the IDLE state. ### 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: ![Mdb add action step 4](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-6dd624c0df.webp) The settings screen should show all four actions and look something like this: ![Mdb settings3](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-a12ca389b7.webp) ### 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: ![Mdb status2](https://www.breezesoftware.com/media/manual-configuration-rp-a-ex1/manual-configuration-rp-a-ex1-b991e40d22.webp) --- Source: https://www.breezesoftware.com/help/payments/manual-configuration-rp-a-ex1