Sha256: c2b60427f3c924868c65deacccdeb977da1948846a9a4db76f511cb71bef322b

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

module Workarea
  class Payment
    module FlowPaymentData
      def order
        @order ||= Workarea::Order.find(tender.payment.id)
      end

      def order_id
        @order_id ||= order.id
      end

      def currency_code
        order.currency
      end

      def customer_data
        {
          customer:  {
            name: { first: address.first_name , last: address.last_name }
          }
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 app/models/workarea/payment/flow_payment_data.rb