The Hosted Checkout Configuration consists of 3 sections:
General Settings, Payment Method Settings – Hosted Checkout and Advanced Parameters.
Please find a brief description of the fields in this configuration page:
Send Line Items: Toggle this option to ‘Disabled’ if you do not want to send the additional data to the Mastercard Gateway.
Test Merchant ID: Enter your test merchant ID.
Test API password: Enter the API password from your merchant account.
Test Webhook Secret: Enter your test webhook secret from your merchant account.
Click on the Save button to save the changes made in the ‘General Settings’ section.
If you’ve set the ‘Live Mode’ to Disabled, ‘Test Merchant ID’, ‘Test API Password’, and ‘Test Webhook Secret’ fields will be displayed.
Conversely, if you’ve set the ‘Live Mode’ to Enabled, the ‘Merchant ID’, ‘API Password’, and ‘Webhook Secret’ fields will be displayed.
It is important to configure your gateway credentials in TEST mode initially and verify that everything functions properly.
Failure to configure the gateway credentials correctly will prevent enabling any of the module’s payment methods.
If, for any reason, the gateway credentials are incorrect, a warning will appear at the top of the ‘Configuration’ page.
The “Embedded” option allows you to enter the user’s card details directly in the Payment Options section.
Choosing “Redirect to Payment Page” will direct you to another page where you can enter the user’s payment details.
Logging Verbosity: Allows to set the verbosity level of var/logs/mastercard.log.
You can select either:
Everything: This option logs everything related to the error when it occurs (Like: API Response/status, errors, warning, etc.).
Errors and Warning Only: This option logs only errors and warning messages when the error occurs.
Errors Only: This is the default option, which only logs errors.
Disabled: Nothing will be logged when an error occurs.
Custom Webhook Endpoint: This is mostly used by development or with some complex web server rules, where the URL is not automatically detected correctly.
It is suggested to keep all these fields with the assigned default value. If required, then do required configuration changes based on your needs but first consult your Technical team / Mastercard Payment Gateway Module support for these.