in the root of the project create a file called .env.local and add the following variables PAYPAL_CLIENT_ID = "<your cliend id>" PAYPAL_CLIENT_SECRET = "<your client secret>" NEXT_PUBLIC_PAYPAL_CLIENT_ID = "<your client id>"