# Testing
source: https://developer.mastercard.com/authentication-consent/documentation/testing/index.md

## Testing Facility {#testing-facility}

Mastercard offers a testing facility that allows the merchants and Payment Service Providers (PSPs) to perform end-to-end testing of an authentication.

![testing-facility-diagram](https://static.developer.mastercard.com/content/authentication-consent/uploads/testingfinal.png)

The testing facility provides:

* Consent - A simulated service that provides consent text and data responses to allow to:
  1. Gather consent text
  2. Initiate a revoke consent function from your merchant backend
  3. Initiate a consent check based on consent ID from your merchant backend

## Getting Access {#getting-access}

To access the Authentication Consent testing environment you must:

1. Complete your enrollment form/contract with your Mastercard business representative
   * A company ID and billable ICA must be in place for your organization
2. Register as a Public Key Infrastructure (PKI) partner through Mastercard KMS portal
   * To access KMP, your company must be registered onto Mastercard Connect.
   * Once your company is set up and given a company identifier (CID), you can register yourself as a user by following the below steps.
     1. Go to [Mastercard Connect](https://www.mastercardconnect.com/mccpblcui/#/public/signin) then click Sign up.
     2. Log into [Mastercard Connect](https://www.mastercardconnect.com/mccpblcui/#/public/signin)
     3. Click **Store** in the top menu
     4. Select the **Apps** tab
     5. Search for **Key Management Portal** in the search bar
     6. On the Key Management Portal card, select **Order**
     7. Select **Security Officer Level 1 access**
     8. Click **Place Order**
3. Once the security officers have established access to the Key Management Portal, submit a request for a client certificate by selecting the **MI Server External Clients - 3DS** option.

|                        |                                          |
|------------------------|------------------------------------------|
| DN Order               | \[*DN Address Order*\]                   |
| Common Name (CN)       | \[*Domain Name*\]                        |
| Organization Unit (OU) | \[*CID* \]-MTF-\[*merchant name*\]       |
| Organization Name (O)  | \[*Customer Name*\]                      |
| Country (C)            | \[*Valid 2 character ISO country code*\] |

4. Once the certificate exchange process is completed and the signed certificates are loaded into your platform, you can proceed to execute tests.

## Endpoints {#endpoints}

**URL:** <https://mtf.api.identity.mastercard.com>

|          API          |               Resource               |
|-----------------------|--------------------------------------|
| GET CONSENT TEXT      | /aes/consent-languages               |
| DELETE REVOKE CONSENT | /aes/user-consents/{user_consent_id} |
| GET CHECK CONSENT     | /aes/user-consents/{user_consent_id} |

