You are here

function stripe_page_attachments in Stripe 8

Same name and namespace in other branches
  1. 2.x 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 47
Contains stripe.module.

Code

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