Sha256: 08d9cd8fc22bea02cd68c30b99296596abbb8e9ea12581eb9a110bacc546f3d0

Contents?: true

Size: 294 Bytes

Versions: 14

Compression:

Stored size: 294 Bytes

Contents

module Stripe
  module JavascriptHelper
    DEFAULT_STRIPE_JS_VERSION = 'v3'

    def stripe_javascript_tag(stripe_js_version = DEFAULT_STRIPE_JS_VERSION)
      stripe_js_version = stripe_js_version.to_s.downcase

      render 'stripe/js', stripe_js_version: stripe_js_version
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
stripe-rails-1.5.5 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.5.4 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.5.3 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.5.2 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.5.1 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.5.0 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.4.2 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.4.1 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.4.0 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.3.0 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.2.2 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.2.1 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.2.0 app/helpers/stripe/javascript_helper.rb
stripe-rails-1.1.2 app/helpers/stripe/javascript_helper.rb