You are here

function stripe_get_publishable_key in Stripe 7

Get the Stripe publishable key.

File

./stripe.module, line 326
stripe.module Drupal hooks used for integrating the Stripe service.

Code

function stripe_get_publishable_key() {
  $status = variable_get('stripe_key_status', 'test');
  $pub_key_name = 'stripe_' . $status . '_publishable';
  $pub_key = variable_get($pub_key_name, '');
  return $pub_key;
}