Home > Magento 2 – Mastercard Payment Gateway Services > Configuration > API Configuration

Magento 2 – Mastercard Payment Gateway Services

Created date: 14-03-23   |   Updated date: 09-09-24   |   Plugin version: 2.4.0  |   API version: 81

API Configuration

Generate API Password and Notification Secret for the Merchant ID

  • If the credentials are incorrect for any reason, there will be a warning displayed on the top of the ‘Configuration’ page.
  • If merchant credentials are not configured correctly, you cannot enable any of the module’s payment methods.
  • The login credentials differ between test accounts and non-test accounts.

Please log in to your MasterCard Merchant Administration interface to find and set up the credentials.

 
Obtaining API Password

1. To obtain an API password, you must enable integration access via password.

2. Once logged into your merchant account, select Admin → Integration Settings.

3. Click the Edit button on the ‘Integration Settings’ page:

4. The Integration Authentication Passwords workspace will appear; you will need to click Generate New button next to Password 1

5. Once the password has been generated, select the Enable Integration Access Via Password checkbox, copy the password and click the Submit button.

 
Obtaining Webhook Secret

1. To obtain the Webhook Secret, you must enable integration access via password.

2. Once logged in to the merchant account, select Admin > Webhook Notifications

3. On the ‘Webhook Notifications’ page:

  • Select the Enabled checkbox.
  • Select JSON/REST from the Web Services API Format drop-down list.
  • Copy the Notification Secret (it will be used for the MasterCard Payment Gateway Services extension).
  • Click the Save button.
  • The plugin automatically includes the notification URL, so manual configuration is not required.