function commerce_stripe_pi_page_build in Commerce Stripe Payment Intent 7
Implements hook_page_build().
File
- ./
commerce_stripe_pi.module, line 2033 - Payment intent stripe payment integration.
Code
function commerce_stripe_pi_page_build(&$page) {
// Include stripe.js on every page if advanced fraud protection is enabled.
if (commerce_stripe_pi_advanced_fraud_enabled()) {
$page['content']['#attached']['js'][COMMERCE_STRIPE_PI_JS] = array(
'type' => 'external',
);
}
}