Module: Square::Connect::Connections::Payments
- Included in:
- Merchant
- Defined in:
- lib/square/connect/connections/payments.rb
Instance Method Summary collapse
Instance Method Details
#payments ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/square/connect/connections/payments.rb', line 5 def payments access_token_required! payments = handle_response do access_token.get endpoint_for(identifier, :payments) end payments.collect do |payment| Payment.new payment.merge( access_token: access_token ) end end |