getStripeSecretKey static method
- @Deprecated('Use stripeProxy() — the secret key must never reach the client')
- bool isLive = true,
Returns Stripe secret key. Empty in secure mode — use stripeProxy() instead. SECURITY: never ship this key in a client app; all Stripe calls must go through the Cloud Functions proxy (stripeProxy).
Implementation
@Deprecated('Use stripeProxy() — the secret key must never reach the client')
static String getStripeSecretKey({bool isLive = true}) {
return isLive
? (_config['stripeSecretLiveKey'] ?? '')
: (_config['stripeSecretTestKey'] ?? '');
}