Class: Astropay::APD
Instance Attribute Summary
Attributes inherited from API
#config
Instance Method Summary
collapse
Methods inherited from API
#build_url, #initialize, #request
Methods included from Request
#post
Constructor Details
This class inherits a constructor from Astropay::API
Instance Method Details
#get_banks_for_country(country_code) ⇒ Object
13
14
15
16
17
18
19
20
21
|
# File 'lib/astropay/apd.rb', line 13
def get_banks_for_country(country_code)
request_data = { 'country_code' => country_code }
request_data
.merge!(config.credentials)
.merge!('type' => 'json')
request('/get_banks_by_country', request_data)
end
|
#live_url ⇒ Object
5
6
7
|
# File 'lib/astropay/apd.rb', line 5
def live_url
'https://astropaycard.com/api_curl/apd'
end
|
#test_url ⇒ Object
9
10
11
|
# File 'lib/astropay/apd.rb', line 9
def test_url
'https://sandbox.astropaycard.com/api_curl/apd'
end
|