bd973289b6
* some desktop cleanup * stripe environment * wallet tabs * fix * old copy * copy * getClaimTypeText * appstrings
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
// @flow
|
|
import { STRIPE_PUBLIC_KEY } from 'config';
|
|
import * as STRIPE_CONSTS from 'constants/stripe';
|
|
export function getStripeEnvironment() {
|
|
if (STRIPE_PUBLIC_KEY) {
|
|
if (STRIPE_PUBLIC_KEY.indexOf('pk_live') > -1) {
|
|
return STRIPE_CONSTS.LIVE;
|
|
} else {
|
|
return STRIPE_CONSTS.TEST;
|
|
}
|
|
}
|
|
return null;
|
|
}
|