"use strict";function getEnvironment(){return"production"===process.env.NODE_ENV?Environment.Production:Environment.Sandbox}function getClientId(){return process.env.NEXT_PUBLIC_APP_PAYPAL_CLIENT_ID||""}function getClientSecret(){return process.env.APP_PAYPAL_CLIENT_SECRET||""}function paypalClient(){return new Client({clientCredentialsAuthCredentials:{oAuthClientId:getClientId(),oAuthClientSecret:getClientSecret()},environment:getEnvironment()})}function paypalOrdersController(){const e=paypalClient();return new OrdersController(e)}Object.defineProperty(exports,"__esModule",{value:!0});exports.paypalClient=paypalClient;exports.paypalOrdersController=paypalOrdersController;const paypalSdk=require("@paypal/paypal-server-sdk"),{Client:Client,Environment:Environment,OrdersController:OrdersController}=paypalSdk;