You are here

function stripe_page_build in Stripe 7

Implements hook_page_build().

Include the Stripe.js file on every page for fraud prevention.

File

./stripe.module, line 520
stripe.module Drupal hooks used for integrating the Stripe service.

Code

function stripe_page_build() {
  drupal_add_js('https://js.stripe.com/v2', 'external');
  drupal_add_js('https://js.stripe.com/v3', 'external');
}