# Create a Sandbox Project
source: https://developer.mastercard.com/digital-redemptions/documentation/tutorials-and-guides/sandbox-access-tutorial/index.md

This guide walks through the steps required to create a new Mastercard Digital Redemptions project and how to gain access to the Sandbox environment.

#### What you will learn {#what-you-will-learn}

* How to create Mastercard Developers Sandbox project
* How to configure it
* How to set up test data

## Create a Project {#create-a-project}

1. To begin you should go to your dashboard, you can do this by clicking on the [My Projects](https://developer.mastercard.com/dashboard) option in the menu.
2. You can create a new project by clicking the **Create New Project** button, in the upper right portion of the screen. ![My Projects](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/myprojects.png)

## Name Your Project {#name-your-project}

1. Enter a descriptive name for your project. ![Name project](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/configureproject.png)

## Add Mastercard Digital Redemptions API to your project {#add-mastercard-digital-redemptions-api-to-your-project}

1. Click on the **Select your API service** dropdown list and select the **Mastercard Digital Redemptions** option.
2. Click **Proceed** . ![Create new project](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/addnewapi.png)

## Sandbox OAuth Credentials {#sandbox-oauth-credentials}

The Digital Redemptions Service supports both **OAuth 1.0a** and **OAuth 2.0** authentication methods. Follow the steps below for the authentication method you are using.

### OAuth 1.0a Credentials {#oauth-10a-credentials}

1. Enter the keyalias and keystore password for generating the oath key.

![Project Credentials](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/projectcredentials.png)


Note: You are required to capture the Keystore password and key alias shown on the screen. The Keystore password is used in conjunction with the .p12 file and Client ID for OAuth 1.0a authentication. Click **Confirm and Continue** to complete the Sandbox setup process. 2. After the project is successfully created, the Sandbox .P12 access credentials will be available for download. 3. Click **Proceed** .

<br />

### OAuth 2.0 Credentials {#oauth-20-credentials}

If your project is enabled for OAuth 2.0 authentication, follow these high-level steps:

1. In your [Developer Dashboard](https://developer.mastercard.com/dashboard), navigate to your project.
2. Locate the OAuth 2.0 credentials section (client ID and client secret).
3. Download or copy your OAuth 2.0 client credentials for use in your application.

Tip: OAuth 2.0 may require additional enablement steps before credentials are available. For detailed setup instructions, refer to the [Using OAuth 2.0 to Access Mastercard APIs](https://developer.mastercard.com/platform/documentation/authentication/using-oauth-2-to-access-mastercard-apis/#step-by-step-implementation).

For more details on supported authentication methods, see [API Basics - Client Authentication](https://developer.mastercard.com/digital-redemptions/documentation/api-basics/index.md#client-authentication)..

## Generate Encryption Keys {#generate-encryption-keys}

1. The encryption keys are auto-generated. The Client Encryption key will be used to encrypt the request and Mastercard Encryption key will be used to decrypt the response. ![Encryption keys](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/additionalcredentials.png)
2. Click **Create Project**.
3. Click the **Download key file** button to download a zip file containing the .p12 file required for OAuth authentication in Sandbox.

![Download signing key](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/downloadkeys.png)
4. After confirmation, you will receive an email confirming the provisioning request and keys.

## Download Encryption Key {#download-encryption-key}

1. After the sandbox environment is provisioned, navigate to **My Projects** and select your project.
2. Click on manage under **Client Encryption Keys** and click the **Download** to download the client encryption key. ![Production Keys APIs](https://static.developer.mastercard.com/content/digital-redemptions/img/merchandise/tutorial/sandboxkeys.png)
3. The Client Encryption key will be used to encrypt the request and Mastercard Encryption key will be used to decrypt the response.

Note: **Mastercard Encryption Keys** will be automatically downloaded upon project creation.

## Provide information to Mastercard Product Delivery or CIS Implementation manager {#provide-information-to-mastercard-product-delivery-or-cis-implementation-manager}

Once you have the consumer key, provide it to your Mastercard Product Delivery or Customer Implementation Services Implementation Manager (CIS IM).
To complete this, perform the following steps:

1. From the Mastercard Developers project summary page, go to the Sandbox Keys section, click on the Actions dropdown button, and select the Copy Consumer key option.
2. Paste the Client ID value into an e-mail and send it to your Account Manager or assigned Product delivery or CIS Implementation Manager. The first 48 characters of this key value (up to the exclamation point) will be the Mastercard API Client ID, which will be used for the Sandbox environment. An example of the key value, with Client ID represented in bold **6Fmo7rEvHmVFTrv73a0m6qfUExPxMzOdY5Rs32KI09979c7f**!aea8847fa4b84b9886143a40ac117aee0000000000000000
3. Once the CIS team adds the Client ID you would be able to test the APIs.
4. Work with your Account Manager or assigned Product delivery Manager for the test data needed for your program. This is a required step before you start testing in Sandbox.
5. For any questions please submit a request by clicking Get Help [here](https://developer.mastercard.com/digital-redemptions/documentation/support/index.md).

## Ready to Test in Sandbox {#ready-to-test-in-sandbox}

You now have everything you need to start sending Digital Redemptions Service requests to the Sandbox! It is recommended to test the full functionality of the Digital Redemptions in the Sandbox environment.
