Sha256: e6d0f89f35b4f7d1c606d6ccefffe4aef47594e844846a482ba0f4d237fc2afc

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

module SolidusPayuLatam
  module InjectCustomerDocumentConcern
    extend ActiveSupport::Concern
    included do
      prepend(InstanceMethods)
    end

    module InstanceMethods
      def gateway_options
        options = super
        document = order.customer_document
        options[:customer_document] = document if document
        options
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_payu_latam-0.1.0 app/models/concerns/solidus_payu_latam/inject_customer_document_concern.rb