Sha256: 553bf59cdd52fe28e14bd623e93755ea96246dea5c4f635f32b75a5bc7955b18
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module SolidusNexio class ApmSource < Spree::PaymentSource self.table_name = 'solidus_nexio_apm_sources' belongs_to :user, class_name: Spree::UserClassHandle.new, foreign_key: 'user_id', optional: true enum kind: { braintree_pay_pal: 0, pay_pal: 1, apple_pay_cyber_source: 2 } def reusable? gateway_payment_profile_id.present? end def name I18n.t("nexio.apms.#{kind}.name") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_nexio-1.0.1 | app/models/solidus_nexio/apm_source.rb |