You are on page 1of 3

Integration Guide.

Step 1: Generate Integration Password.

Login to MasterCard Portal via https://ap-gateway.mastercard.com/ma/login.s?

Admin -> Integration Settings -> Edit -> Generate password 1 & 2 -> Save

Use password 2

Step 2: Generate Session ID per request.

Documentation: https://ap-gateway.mastercard.com/api/documentation/apiDocumentation/rest-
json/version/68/operation/Session%3a%20Create%20Session.html?locale=en_US

URL: https://ap-gateway.mastercard.com/api/rest/version/68/merchant/<merchant_id>/session

HTTP Method: POST

Authentication This operation requires authentication via one of the following methods:

Username: “merchant.<merchant_id>” Password: <go_to_step1>

Sample Postman: Authentication

Request Body
Copy the session.id value to Checkout.configure.session.id field as is on integration script.

Step 2: Generate Unique ID’s

Generate unique order & transaction id

order.id & order.reference


transaction.reference

Test Cards: use the below test cards for test environment.

2
https://ap-
gateway.mastercard.com/api/documentation/integrationGuidelines/supportedFeatures/testAndGoLive.html?locale=en_
US

Step 3: Fetching transaction results

To retrieve transaction results, make the below API request:

Documentation- https://ap-gateway.mastercard.com/api/documentation/apiDocumentation/rest-
json/version/68/operation/Transaction%3a%20%20Retrieve%20Order.html?locale=en_US

URL https://ap-gateway.mastercard.com/api/rest/version/68/merchant/<merchant_id>/order/{orderid}/

HTTP Method GET

You might also like