Class: MangoPay::PayIn

Inherits:
Resource show all
Includes:
HTTPCalls::Fetch, HTTPCalls::Refund
Defined in:
lib/mangopay/pay_in.rb

Overview

Defined Under Namespace

Modules: ApplePay, BankWire, Blik, Card, DirectDebit, Giropay, GooglePay, Ideal, Klarna, Mbway, Multibanco, PayPal, Payconiq, PreAuthorized, RecurringPayments, Satispay

Class Method Summary collapse

Methods included from HTTPCalls::Refund

included

Methods included from HTTPCalls::Fetch

included, parse_id_or_filters

Methods inherited from Resource

class_name, url

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