function commerce_braintree_express_checkout_library in Commerce Braintree 7.3
Implements hook_library().
File
- modules/
commerce_braintree_express_checkout/ commerce_braintree_express_checkout.module, line 13 - Provides integration PayPal Express Checkout for Braintree.
Code
function commerce_braintree_express_checkout_library() {
$path = drupal_get_path('module', 'commerce_braintree_express_checkout');
$libraries['braintree.expresscheckout'] = array(
'title' => 'Braintree Express Checkout',
'website' => 'https://developer.paypal.com/docs/accept-payments/express-checkout/ec-braintree-sdk/client-side/javascript/v3/',
'version' => '3.22.2',
'js' => array(
'https://js.braintreegateway.com/web/3.22.2/js/client.min.js' => array(
'type' => 'external',
),
'https://js.braintreegateway.com/web/3.22.2/js/paypal-checkout.min.js' => array(
'type' => 'external',
),
'https://www.paypalobjects.com/api/checkout.js' => array(
'type' => 'external',
),
$path . '/js/commerce_braintree_express_checkout.js' => array(),
),
);
return $libraries;
}