function _uc_stripe_load_library in Ubercart Stripe 7.2
Same name and namespace in other branches
- 7.3 uc_stripe.install \_uc_stripe_load_library()
Load the PHP API
Return value
Stripe version number as string or FALSE if failed to load
2 calls to _uc_stripe_load_library()
- uc_stripe_requirements in ./
uc_stripe.install - Implements hook_requirements().
- _uc_stripe_prepare_api in ./
uc_stripe.module - Load stripe API
File
- ./
uc_stripe.install, line 71 - Installation file for the uc_stripe module.
Code
function _uc_stripe_load_library() {
module_load_include('module', 'uc_stripe');
if (($library = libraries_load('stripe')) && !empty($library['loaded']) && class_exists('\\Stripe\\Stripe')) {
return \Stripe\Stripe::VERSION;
}
watchdog('uc_stripe', 'Stripe PHP Library not installed or wrong version');
return FALSE;
}