Sha256: 84630d6bb7eb0603b7fea4dee22c136519c03d22982dfe4cde61ca55cbe59ad8
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true module Workarea decorate Payment::Tender::CreditCard, with: :cim do decorated do field :ip_address, type: String end # @return [String] def gateway_profile_id profile.gateway_id end def valid_capture_date? payment.eligible_for_refund?.tap do |eligible| unless eligible payment.errors.add( :base, 'The initial charge has not yet been settled.' \ 'A transaction must be settled before you can issue a refund.' ) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems