You are here:
Generate an API Key to Connect Your Storefront to the Adyen API
Connect your PWA kit storefront to the Adyen API.
- If you don't have an Adyen test account, create one. See Get started with Adyen.
-
Generate an API Key according to Adyen's
instructions.
Note this API key.
- For your new API credential, Generate a Client Key, according to Adyen's documentation. Add your PWA storefront domain as an allowed origin. Note your client key.
-
Make sure that your merchant account has Apple Pay and Google Pay as payment methods.
Follow Adyen's documentation to add payment methods if needed.
Include your PWA storefront domain as a merchant domain on Apple Pay. If you're setting up Apple Pay for the first time, add it when requesting a new payment method. Otherwise, use the Adyen API to Add an Apple Pay domain.
- Set the Managed Runtime (MRT) Environment to Deploy the PWA Kit.
- In your MRT environment, go to , and select your project.
- Select Environment Variables.
-
Specify the values for these variables. If a variable contains YOUR_SITE_ID, replace it
with the same value as your Commerce API site ID. For example RefArch_ADYEN_API_KEY.
Variable Description YOUR_SITE_ID_ADYEN_API_KEY Adyen API key YOUR_SITE_ID_ADYEN_MERCHANT_ACCOUNT Adyen merchant account name YOUR_SITE_ID_ADYEN_CLIENT_KEY Adyen client key YOUR_SITE_ID_ADYEN_ENVIRONMENT Enter TEST. When you're ready to accept live payments, change the value to LIVE. For more information, see Adyen's documentation for setting up the Salesforce Composable Storefront package

