function commerce_stripe_pi_load_library in Commerce Stripe Payment Intent 7
Brings the stripe php client library into scope.
19 calls to commerce_stripe_pi_load_library()
- commerce_stripe_pi_cancel_payment_intent in ./
commerce_stripe_pi.module - Cancel a payment intent.
- commerce_stripe_pi_capture in ./
commerce_stripe_pi.module - Capture a transaction.
- commerce_stripe_pi_capture_form_submit in includes/
commerce_stripe_pi.admin.inc - Submit handler: process a prior authorization capture via AIM.
- commerce_stripe_pi_cardonfile_create in ./
commerce_stripe_pi.module - Card on file callback: create.
- commerce_stripe_pi_cardonfile_delete in ./
commerce_stripe_pi.module - Card on file callback: deletes the associated customer payment profile.
File
- ./
commerce_stripe_pi.module, line 1876 - Payment intent stripe payment integration.
Code
function commerce_stripe_pi_load_library() {
$library = libraries_load('stripe-php');
if (!$library || empty($library['loaded'])) {
watchdog('commerce_stripe_pi', 'Failure to load Stripe API PHP Client Library. Please see the Status Report for more.', array(), WATCHDOG_CRITICAL);
return FALSE;
}
return $library;
}