function commerce_stripe_load_library in Commerce Stripe 7.3
Same name and namespace in other branches
- 7 commerce_stripe.module \commerce_stripe_load_library()
- 7.2 commerce_stripe.module \commerce_stripe_load_library()
Brings the stripe php client library into scope
12 calls to commerce_stripe_load_library()
- commerce_stripe_capture_form_submit in includes/
commerce_stripe.admin.inc - Submit handler: process a prior authorization capture via AIM.
- commerce_stripe_cardonfile_charge in ./
commerce_stripe.module - Card on file callback: background charge payment TODO: implement proper return codes per commerce payment
- commerce_stripe_cardonfile_delete in ./
commerce_stripe.module - Card on file callback: deletes the associated customer payment profile.
- commerce_stripe_cardonfile_update in ./
commerce_stripe.module - Card on file callback: updates the associated customer payment profile.
- commerce_stripe_connect_admin_disconnect_form_submit in modules/
commerce_stripe_connect/ includes/ commerce_stripe_connect.admin.inc - Form callback: submits the form to disconnect the site's Stripe account.
File
- ./
commerce_stripe.module, line 1577 - This module provides Stripe (http://stripe.com/) payment gateway integration to Commerce. Commerce Stripe offers a PCI-compliant way to process payments straight from you Commerce shop.
Code
function commerce_stripe_load_library() {
$library = libraries_load('stripe-php');
if (!$library || empty($library['loaded'])) {
watchdog('commerce_stripe', 'Failure to load Stripe API PHP Client Library. Please see the Status Report for more.', array(), WATCHDOG_CRITICAL);
return FALSE;
}
return TRUE;
}