Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Attaching the Stripe javascript directly to $page doesn't work, see https://drupal.stackexchange.com/questions/172112/why-does-pagecontentat...
In hook_page_build() we should attach to $page['content'] instead. Perhaps this depends on the theme implementation, but by default the current version of this module doesn't work at all - this is probably a result of something from https://www.drupal.org/project/commerce_stripe_pi/issues/3077684 but I don't really know what order things have been changed in.
Comments
Comment #2
GoZ CreditAttribution: GoZ commentedI broke something here you are right. My bad.
I fix it + also use attachment instead of drupal_add_js in another function
Thanks for the report
Comment #4
GoZ CreditAttribution: GoZ commented