- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
If someone wants to use stripe only for registered users, it would be nice to have option to load Stripe javascript based on login status. I solved it for my own purpose by changing this function inside commerce_stripe.module file:
/**
* Implements hook_init().
*/
function commerce_stripe_init() {
if(user_is_logged_in()){
drupal_add_js('https://js.stripe.com/v3', 'external');
}
}
This way JS is loaded only for logged in users on every page as advised. Also there are no Stripe cookies created for anonymous users.
Closed: outdated
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.