Sha256: 1df127507b2fd25e1f4488d0eb5aef8f1b536dbe9f60481b2e49cb23af73aeb0

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

module KktShoppe
  module Stripe
    module ViewHelpers
      
      def kkt_shoppe_stripe_javascript
        String.new.tap do |s|
          s << javascript_include_tag('https://js.stripe.com/v2/')
          s << "<script type=\"text/javascript\">Stripe.setPublishableKey('#{KktShoppe::Stripe.publishable_key}');</script>"
        end.html_safe
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kkt_shoppe-stripe-2.0.0 lib/kkt_shoppe/stripe/view_helpers.rb