Class: MangoPay::PayIn
- Includes:
- HTTPCalls::Fetch, HTTPCalls::Refund
- Defined in:
- lib/mangopay/pay_in.rb
Overview
Defined Under Namespace
Modules: ApplePay, BankWire, Blik, Card, DirectDebit, GooglePay, Klarna, Mbway, Multibanco, PayPal, Payconiq, PreAuthorized, RecurringPayments, Satispay
Class Method Summary collapse
-
.refunds(pay_in_id, filters = {}) ⇒ Object
Fetches list of refunds belonging to the given
pay_in_id.
Methods included from HTTPCalls::Refund
Methods included from HTTPCalls::Fetch
Methods inherited from Resource
Class Method Details
.refunds(pay_in_id, filters = {}) ⇒ Object
Fetches list of refunds belonging to the given pay_in_id.
Optional filters is a hash accepting following keys:
-
page,per_page,sort: pagination and sorting params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch) -
Status: TransactionStatus SUCCEEDED, FAILED -
ResultCode: string representing the transaction result
14 15 16 17 |
# File 'lib/mangopay/pay_in.rb', line 14 def self.refunds(pay_in_id, filters = {}) url = url(pay_in_id) + '/refunds' MangoPay.request(:get, url, {}, filters) end |