Method: Figo#get_supported_payment_services

Defined in:
lib/bank/api_call.rb

#get_supported_payment_services(country_code = "DE", service) ⇒ Object

Get supported services

Parameters:

  • country_code (String) (defaults to: "DE")

    the country code the service comes from

  • service (String)

    filter the type of service to request (optional): banks, services or everything (default)



39
40
41
42
43
44
45
46
47
48
# File 'lib/bank/api_call.rb', line 39

def get_supported_payment_services(country_code="DE", service)
  case service
  when "banks"
    query_api("/rest/catalog/banks/" + country_code, nil)
  when "service"
    query_api("/rest/catalog/services/" + country_code, nil)
  else
    query_api("/rest/catalog/" + country_code, nil)
  end
end