publishableKey property

String publishableKey

Retrieves the publishable API key.

Implementation

static String get publishableKey {
  if (instance._publishableKey == null) {
    throw const StripeConfigException('Publishable key is not set');
  }
  return instance._publishableKey!;
}
void publishableKey=(String value)

Sets the publishable key that is used to identify the account on the Stripe platform.

Implementation

static set publishableKey(String value) {
  if (value == instance._publishableKey) {
    return;
  }
  instance._publishableKey = value;
  instance.markNeedsSettings();
}