All URIs are relative to https://api-sandbox.transferzero.com/v1
Method | HTTP request | Description |
---|---|---|
payment_methods_in | GET /info/payment_methods/in | This method returns possible payin methods. |
payment_methods_out | GET /info/payment_methods/out | This method returns possible payout methods. |
PaymentMethodListResponse payment_methods_in
This method returns possible payin methods.
Fetching possible payin methods.
# load the gem
require 'transferzero-sdk'
api_instance = TransferZero::PaymentMethodsApi.new
begin
#This method returns possible payin methods.
result = api_instance.payment_methods_in
p result
rescue TransferZero::ApiError => e
if e.validation_error
puts "WARN: Validation error occured when calling the endpoint"
result = e.response_object("PaymentMethodListResponse")
p result
else
puts "Exception when calling PaymentMethodsApi->payment_methods_in: #{e}"
end
end
This endpoint does not need any parameter.
You can set the API Key and Secret on the TransferZero object when setting it up:
TransferZero.configure do |config|
config.api_key = '<key'
config.api_secret = '<secret>'
config.host = 'https://api-sandbox.transferzero.com/v1'
end
- Content-Type: Not defined
- Accept: application/json
PaymentMethodListResponse payment_methods_out
This method returns possible payout methods.
Fetching possible payout methods.
# load the gem
require 'transferzero-sdk'
api_instance = TransferZero::PaymentMethodsApi.new
begin
#This method returns possible payout methods.
result = api_instance.payment_methods_out
p result
rescue TransferZero::ApiError => e
if e.validation_error
puts "WARN: Validation error occured when calling the endpoint"
result = e.response_object("PaymentMethodListResponse")
p result
else
puts "Exception when calling PaymentMethodsApi->payment_methods_out: #{e}"
end
end
This endpoint does not need any parameter.
You can set the API Key and Secret on the TransferZero object when setting it up:
TransferZero.configure do |config|
config.api_key = '<key'
config.api_secret = '<secret>'
config.host = 'https://api-sandbox.transferzero.com/v1'
end
- Content-Type: Not defined
- Accept: application/json