You are here

function stripe_page_attachments in Stripe 2.x

Same name and namespace in other branches
  1. 8 stripe.module \stripe_page_attachments()

Implements hook_page_attachments().

To best leverage Stripe’s advanced fraud functionality, include this script on every page on your site, not just the checkout page. This allows Stripe to detect anomalous behavior that may be indicative of fraud as users browse your web site.

See also

https://stripe.com/docs/stripe.js

File

./stripe.module, line 50
Contains stripe.module.

Code

function stripe_page_attachments(array &$page) {
  $page['#attached']['library'][] = 'stripe/stripe';
}