Skip to content

Latest commit

 

History

History
124 lines (84 loc) · 2.79 KB

PaymentMethodsApi.md

File metadata and controls

124 lines (84 loc) · 2.79 KB

TransferZero::PaymentMethodsApi

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.

payment_methods_in

PaymentMethodListResponse payment_methods_in

This method returns possible payin methods.

Fetching possible payin methods.

Example

# 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

Parameters

This endpoint does not need any parameter.

Return type

PaymentMethodListResponse

Authorization

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

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

payment_methods_out

PaymentMethodListResponse payment_methods_out

This method returns possible payout methods.

Fetching possible payout methods.

Example

# 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

Parameters

This endpoint does not need any parameter.

Return type

PaymentMethodListResponse

Authorization

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

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json