Sha256: 00b288ad7c553fb593d7942ede7afa997129ae00ed5e055861b73186c88a6c0e
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 Bytes
Contents
# frozen_string_literal: true require 'solidus_core' require 'solidus_support' module SolidusOpenPay class Engine < Rails::Engine include SolidusSupport::EngineExtensions isolate_namespace ::Spree engine_name 'solidus_open_pay' initializer 'spree.gateway.payment_methods', after: 'spree.register.payment_methods' do |app| app.config.spree.payment_methods << 'SolidusOpenPay::PaymentMethod' Spree::PermittedAttributes.source_attributes.push( :address_attributes, :cc_type, :number, :name, :verification_value, :token_id, :type, :brand, :points_card, :points_type, :expiration_month, :expiration_year, :device_session_id ) end # Use rspec for tests config.generators do |g| g.test_framework :rspec end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_open_pay-1.0.0 | lib/solidus_open_pay/engine.rb |