Class: PaylineSDK::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/payline_sdk/client.rb

Constant Summary collapse

PAYLINE_NAMESPACE =
'http://obj.ws.payline.experian.com'.freeze
PROD_ENDPOINT =
'https://services.payline.com/V4/services/'.freeze
HOMO_ENDPOINT =
'https://homologation.payline.com/V4/services/'.freeze
DIRECT_API =
'DirectPaymentAPI'.freeze
EXTENDED_API =
'ExtendedAPI'.freeze
WEB_API =
'WebPaymentAPI'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



14
15
16
17
# File 'lib/payline_sdk/client.rb', line 14

def initialize
  @env = PaylineSDK.configuration.environment
  init_clients(PaylineSDK.configuration.file, PaylineSDK.configuration.merchant_id, PaylineSDK.configuration.access_key)
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



12
13
14
# File 'lib/payline_sdk/client.rb', line 12

def attributes
  @attributes
end

#direct_clientObject

Returns the value of attribute direct_client.



12
13
14
# File 'lib/payline_sdk/client.rb', line 12

def direct_client
  @direct_client
end

#extended_clientObject

Returns the value of attribute extended_client.



12
13
14
# File 'lib/payline_sdk/client.rb', line 12

def extended_client
  @extended_client
end

#web_clientObject

Returns the value of attribute web_client.



12
13
14
# File 'lib/payline_sdk/client.rb', line 12

def web_client
  @web_client
end