getStripeSecretKey static method

String getStripeSecretKey({
  1. bool isLive = true,
})

Returns Stripe secret key. Empty in secure mode — use stripeProxy() instead.

Implementation

static String getStripeSecretKey({bool isLive = true}) {
  return isLive
      ? (_config['stripeSecretLiveKey'] ?? '')
      : (_config['stripeSecretTestKey'] ?? '');
}