Using the API Key {#samsungpay-using-api-key}
=============================================

The API key is used to verify that your app (in debug mode or release mode) can use the Samsung Pay SDK APIs with the Samsung Pay application. To get the API key, you must create a *debug-api-key* file and include it in the *manifest* file.

1. To use the API key, include it in the *manifest* file with a custom tag. This enables the merchant app android *manifest* file to provide the `DebugMode`, `spay_debug_api_key` values as metadata.

Example: Debug Mode {#samsungpay-apikey-ex-debug}
=================================================

```
&lt;meta-data
    android:name="debug_mode"
    android:value="Y" /&gt;
&lt;meta-data
    android:name="spay_debug_api_key"
    android:value="asdfggkndkeie17283094858" /&gt;                                 
```

Example: Release Mode {#samsungpay_apikey_ex_release}
=====================================================

```
&lt;meta-data
    android:name="debug_mode"
    android:value="N" /&gt;                         
```

