Sha256: 4ab6ad0822eb40cc8a1fd0db355db12f6aeefc71878d726c350988dd756d883c
Contents?: true
Size: 506 Bytes
Versions: 9
Compression:
Stored size: 506 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(this.elementsBaseOptions()); }; SolidusStripe.Payment.prototype.elementsBaseOptions = function () { return { locale: 'en' }; };
Version data entries
9 entries across 9 versions & 1 rubygems