function _uc_stripe_check_api_keys in Ubercart Stripe 7.2
Same name and namespace in other branches
- 8.3 uc_stripe.module \_uc_stripe_check_api_keys()
- 8.2 uc_stripe.module \_uc_stripe_check_api_keys()
- 6.2 uc_stripe.module \_uc_stripe_check_api_keys()
- 7.3 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()
- uc_stripe_requirements in ./
uc_stripe.install - Implements hook_requirements().
- _uc_stripe_prepare_api in ./
uc_stripe.module - Load stripe API
File
- ./
uc_stripe.module, line 745 - A stripe.js PCI-compliant payment gateway Forked from Bitcookie's work (thanks!) which was posted at http://bitcookie.com/blog/pci-compliant-ubercart-and-stripe-js from discussion in the uc_stripe issue queue, https://www.drupal.org/node/1467886
Code
function _uc_stripe_check_api_keys() {
return variable_get('uc_stripe_api_key_live_publishable', FALSE) && variable_get('uc_stripe_api_key_live_secret', FALSE) && variable_get('uc_stripe_api_key_test_publishable', FALSE) && variable_get('uc_stripe_api_key_test_secret', FALSE);
}