Showing all 4 resultsSorted by latest
add_action('wp_footer', 'enqueue_stripe_scripts_for_guests');
function enqueue_stripe_scripts_for_guests() {
if (!is_user_logged_in() && is_checkout()) {
wp_enqueue_script('stripe-js', 'https://js.stripe.com/v3/');
}
}