1. These radio buttons determine if the Account is linked to the Parent Entity's Gateway account or if the Account will have it's own Gateway account.
2. If the "Link to the Parent Entity's Gateway account" option is selected, disable and autopopulate the Gateway, Merchant ID, API Private Key, and API Public Key.
3. If the "Link to an existing gateway account" option is selected, clear and enable the Gateway, Merchant ID, API Private Key, and API Public Key fields.
1. If linking to the Parent Entity's Gateway, display Gateway API Public Key. If the Account will have it's own Gateway account, allow the user to enter the Gateway API Public Key.
2. This should display an inline error message if the user clicks the Save button without populating this field.
1. If linking to the Parent Entity's Gateway, display Gateway API Private Key. If the Account will have it's own Gateway account, allow the user to enter the Gateway API Private Key.
2. This should display an inline error message if the user clicks the Save button without populating this field.
1. If linking to the Parent Entity's gateway account, display Merchant ID. If the Account will have it's own Gateway account, allow the user to enter the Merchant ID.
2. This should display an inline error message if the user clicks the Submit button without populating this field.
1. This will navigate the user to the add/edit device screen allowing the user to enter details for a new Device. Refer to the specification for that device here.
1. If linking to the Parent Entity's gateway account, display the parent entity's Gateway. If the Account will have it's own Gateway account, allow the user to select a Gateway from the list
2. This list should be flltered to only show Gateways where the accepted Country matches the country the merchant is located in.
3. When a Gateway is selected, clear all fields on the Gateway tab (including the Payment Methods and Devices tabs) and repopulate the list of "Payment Methods" based on the options the Gateway allows.
4. If the user clicks on the Save button without entering a value in this field, display an inline error message and do not create the record.
1. Check the rules mentioned in each input element on both the Payment Methods and Devices tabs, and show inline error messages for invalid / unpopulated inputs.
2. If the validation results are successful save all Gateway options selected. Also, if the account will have it's own Gateway account, automatically generate OpusPAY API credentials and assign them to this merchant.
4. Navigate the user to the Accounts screen. Refer to the specifications for that screen here.
1. This will allow the user to "delete" a Device from this table.
2. Devices should never be deleted from the database, only from this list. Deleted Devices will still need to be used for any reports, etc. where the Device is linked to a transaction.