Below is a detailed explanation of each field in the Hosted Checkout section, designed to guide you through the setup process:
Check the checkbox to enable the Mastercard Gateway Payment option. This step activates the configuration needed for this payment option as well as enabling the same in the checkout page.
Type in a name or label for this payment method. This is what your customers will see on the checkout page when choosing how to pay. Make sure the label is clear and easy to understand.
Enter the description for this payment method as you want it to appear on the checkout page for customers.
Select the gateway instance based on your account region.
If “Custom URL” is selected for Gateway, provide a custom URL to override the default regional gateway.
Choose one of the following Transaction Mode (Payment flows):
Please note that while the transfer is automatic, it might take a little time for the amount to show up in the merchant’s account. However, no additional action is required from either the user or the merchant to complete the process.
This method gives you more control but requires you to complete the capture process manually within the stipulated timeframe configured for your MID.
Choose the integration model as Hosted Checkout.
For the Checkout Interaction, you have the option to select either “Redirect to Payment Page” or “Embedded” from the dropdown menu. This field will only be displayed if you have chosen the Integration Model as Hosted Checkout.
Redirect to Payment Page: Customers are redirected to a secure Mastercard-hosted page to complete payment. Choosing “Redirect to Payment Page” will enable the Merchant Information section at the end of the plugin configuration page, allowing you to specify the information to be displayed on the redirected page.
Embedded Form: Customers enter card details directly on the checkout page.
Enable this option to log data into ./wp-content/mastercard.log. Please note that logging is only available if the Test Sandbox Mode is enabled. Debugging creates detailed logs that can help you identify and fix issues with your payment process.
Enable this option if you want to include detailed order information (like item names, quantities, and prices) in the transactions sent to the Mastercard Gateway and the Redirected Payment page (If configured). This helps with tracking and provides more details for reporting.
Please set up your Merchant credentials in TEST mode and ensure that everything functions correctly.
Specify the order ID prefix. This is necessary if multiple integrations share the same Merchant ID to prevent potential duplicates in Order IDs, which could result in payment issues.
Enter the WebHook Secret from your merchant account. Please refer to API Configuration to obtain the Webhook Secret.
The plugin automatically includes the Notification URL, so manual configuration in the Merchant Administration portal is not required.
This option allows you to add extra fees at checkout. The fee can be applied as either a fixed amount or a percentage of the subtotal.
This section is displayed only when “Redirect to Payment Page” is selected for Checkout Interaction. Configuring the fields below allows the details to be shown on the Redirected Payment Page.
Please note that there is no character limit for typing in the above fields. However, only the character count specified for each field will be considered and displayed on the Redirected Payment Page.
Click the “Save Changes” button to save the modifications made on the ‘Mastercard Gateway Configuration’ page.