---
title: "Credentials"
manual: "Cart PayPal"
version: "main"
permalink: "https://docs.typo3.org/permalink/extcode/cart-paypal:credentials@main"
source: "Administrator/Configuration/Credentials/Index.rst"
rendered: "2026-11-22T22:46:09+00:00"
---

# Credentials {#credentials}

Cart PayPal needs the credentials of a PayPal app (REST API).

| Credential | Description |
| --- | --- |
| clientId | The client id of the app. It is public, the JavaScript SDK on the payment page uses it. |
| clientSecret | The secret of the app. |
| webhookId | The id of the webhook of the app, see [Webhook](https://docs.typo3.org/permalink/extcode/cart-paypal:webhook@main). Without it, webhooks are rejected. |
| sandbox | `1` uses the PayPal sandbox, `0` the live system. Without the setting the sandbox is used. |

Store the credentials in environment variables and read them in
`config/system/additional.php`, see
[Credentials from $GLOBALS\['TYPO3_CONF_VARS'\]](https://docs.typo3.org/permalink/extcode/cart-paypal:credentials-from-confvars@main).
This is the recommended way.

Use the [credentials from the site configuration](https://docs.typo3.org/permalink/extcode/cart-paypal:credentials-from-site-configuration@main)
only if the sites of an installation need different PayPal apps.

> [!IMPORTANT]
> The credentials are no site settings and no TypoScript. Site settings are
> shown in the backend module *Site Settings* and in the TypoScript of the
> site, and saving them in the backend writes the values of environment
> variables into `settings.yaml`. TypoScript is versioned and deployed with
> the project or stored in the database.

If the credentials are to be saved in a different way,
[Credentials from own CredentialLoader](https://docs.typo3.org/permalink/extcode/cart-paypal:credentials-from-own-credentialloader@main)
describes how to provide the credentials implementing the
`CredentialLoaderInterface`.

---

**[Credentials from TYPO3_CONF_VARS](https://docs.typo3.org/permalink/extcode/cart-paypal:credentials-from-confvars@main)**

Credentials are read from $GLOBALS\['TYPO3_CONF_VARS'\], set from
environment variables in `config/system/additional.php`.

**[Credentials from the site configuration](https://docs.typo3.org/permalink/extcode/cart-paypal:credentials-from-site-configuration@main)**

Credentials are read from the configuration of the site, for
installations with different PayPal apps per site.

-   [Credentials from $GLOBALS['TYPO3_CONF_VARS']](https://docs.typo3.org/permalink/extcode/cart-paypal:credentials-from-globals-typo3-conf-vars@main)
-   [Credentials from the site configuration](https://docs.typo3.org/permalink/extcode/cart-paypal:credentials-from-the-site-configuration@main)
