Sha256: ce18e05a7f0536c273e9339c7f102eb95b06e6aeb6fe9f56c5359eb0d40faf3a

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

module FbGraph
  module Connections
    module Payments
      def payments(options = {})
        options[:access_token] ||= self.access_token
        options[:access_token] ||= get_access_token(options[:secret]) if respond_to?(:get_access_token)
        orders = self.connection(:payments, options)
        orders.map! do |order|
          orders[:access_token] ||= options[:access_token] || self.access_token
          Order.new(order[:id], order)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fb_graph-1.8.5 lib/fb_graph/connections/payments.rb
fb_graph-1.8.4 lib/fb_graph/connections/payments.rb
fb_graph-1.8.3 lib/fb_graph/connections/payments.rb
fb_graph-1.8.2 lib/fb_graph/connections/payments.rb
fb_graph-1.8.1 lib/fb_graph/connections/payments.rb