forked from paypal/paypal-checkout-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
28 lines (25 loc) · 926 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* @flow */
/* eslint no-process-env: off */
jest.setTimeout(10 * 60 * 1000);
export const STAGE: string = process.env.STAGE || "sandbox.paypal.com";
export const CLIENT_ID: string =
process.env.CLIENT_ID ||
"ATq4kPMhjTp6qrUQybY0SSz6Es1sO0YDF9f67rt2e-dZx36hHGbV1U9Ek3QRwcHcyyBlHXysRr-uXg18";
export const DOMAIN: string =
process.env.SPB_DOMAIN || "https://www.mock-spb-merchant.com";
export const HEADLESS: boolean = Boolean(
process.env.HEADLESS !== "0" && process.env.HEADLESS !== "false"
);
export const DEVTOOLS: boolean = Boolean(
HEADLESS &&
(process.env.DEV_TOOLS === "1" || process.env.DEV_TOOLS === "true")
);
export const RETRIES: number = process.env.RETRIES
? parseInt(process.env.RETRIES, 10)
: 5;
export const LOG: boolean = Boolean(
process.env.LOG === "1" || process.env.LOG === "true"
);
export const TIMEOUT: number = process.env.TIMEOUT
? parseInt(process.env.TIMEOUT, 10)
: 60;