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. 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']. This is the recommended way.

Use the credentials from the site configuration only if the sites of an installation need different PayPal apps.

If the credentials are to be saved in a different way, Credentials from own CredentialLoader describes how to provide the credentials implementing the CredentialLoaderInterface.


Credentials from TYPO3_CONF_VARS

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

Credentials from the site configuration

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