Class: PushPay::Payment
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#find(payment_token, merchant_key: nil) ⇒ Object
Get a single payment by token.
-
#list(merchant_key: nil, **params) ⇒ Object
List payments for a merchant.
-
#list_for_organization(organization_key: nil, **params) ⇒ Object
List payments across an organization.
Methods inherited from Base
Constructor Details
This class inherits a constructor from PushPay::Base
Instance Method Details
#find(payment_token, merchant_key: nil) ⇒ Object
Get a single payment by token
6 7 8 |
# File 'lib/pushpay/payment.rb', line 6 def find(payment_token, merchant_key: nil) client.get("#{merchant_path(merchant_key)}/payment/#{payment_token}") end |
#list(merchant_key: nil, **params) ⇒ Object
List payments for a merchant
11 12 13 |
# File 'lib/pushpay/payment.rb', line 11 def list(merchant_key: nil, **params) client.get("#{merchant_path(merchant_key)}/payments", params) end |
#list_for_organization(organization_key: nil, **params) ⇒ Object
List payments across an organization
16 17 18 |
# File 'lib/pushpay/payment.rb', line 16 def list_for_organization(organization_key: nil, **params) client.get("#{organization_path(organization_key)}/payments", params) end |