Sha256: 844ad503485f42d94f5797fc9e54813bcb3e58ee71ece3fabed431f1bbf1f36e
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
window.SolidusStripe = window.SolidusStripe || {}; SolidusStripe.Payment = function() { this.config = $('[data-stripe-config]').data('stripe-config'); this.element = $('#payment_method_' + this.config.id); this.authToken = $('meta[name="csrf-token"]').attr('content'); this.stripe = Stripe(this.config.publishable_key); this.elements = this.stripe.elements({locale: 'en'}); };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_stripe-3.0.0 | app/assets/javascripts/spree/frontend/solidus_stripe/stripe-payment.js |
solidus_stripe-2.1.0 | app/assets/javascripts/spree/stripe-payments/stripe-payment.js |