You are here

public function Stripe::getPublishableKey in Commerce Stripe 8

Get the Stripe API Publisable key set for the payment gateway.

Return value

string The Stripe API publishable key.

Overrides StripeInterface::getPublishableKey

File

src/Plugin/Commerce/PaymentGateway/Stripe.php, line 134

Class

Stripe
Provides the Stripe payment gateway.

Namespace

Drupal\commerce_stripe\Plugin\Commerce\PaymentGateway

Code

public function getPublishableKey() {
  return $this->configuration['publishable_key'];
}