You are here

function _uc_stripe_check_api_keys in Ubercart Stripe 8.3

Same name and namespace in other branches
  1. 8.2 uc_stripe.module \_uc_stripe_check_api_keys()
  2. 6.2 uc_stripe.module \_uc_stripe_check_api_keys()
  3. 7.3 uc_stripe.module \_uc_stripe_check_api_keys()
  4. 7.2 uc_stripe.module \_uc_stripe_check_api_keys()

Check that all API keys are configured.

Return value

bool TRUE if all 4 keys have a value.

2 calls to _uc_stripe_check_api_keys()
StripeGateway::prepareApi in src/Plugin/Ubercart/PaymentMethod/StripeGateway.php
Utility function: Load stripe API
uc_stripe_requirements in ./uc_stripe.install
Implements hook_requirements().

File

./uc_stripe.module, line 55
A stripe.js PCI-compliant payment gateway

Code

function _uc_stripe_check_api_keys($configuration) {
  return $configuration['live_publishable_key'] && $configuration['live_secret_key'] && $configuration['test_publishable_key'] && $configuration['test_secret_key'];
}