# Migration v34

Breaking change on `fetchDirectDebitMandatePdf` and `hasLinkedGoogleAccount`

## What do you need to do?
1: Request auth keys for `x-api-key` on `#api-gateway-support` channel for Direct Debit Mandate and Google Account Linking.

2: In the membership config file in the consumer app:

a) Add the Production Config to read `directDebitApiKey: process.env.DIRECT_DEBIT_KEY__PROD` and Test Config to `directDebitApiKey: process.env.DIRECT_DEBIT_KEY__TEST`.

b) Update the Production Config to read `accountLinkingApiKey: process.env.ACCOUNT_LINKING_SVC_API_KEY_PROD` and Test Config to `accountLinkingApiKey: process.env.ACCOUNT_LINKING_SVC_API_KEY_TEST`.

3: If your CI uses the env vars, you will need to apply changes a) & b) to the relevant files.

## Changes

In`src/account-linking.ts` file, method `hasLinkedGoogleAccount` now uses `x-api-key` .
In`src/subscription.ts` file, method `fetchDirectDebitMandatePdf` now uses `x-api-key` .

Please refer to this [Jira thread](https://financialtimes.atlassian.net/browse/ACC-1820) for more context. 
