Module: Adyen::API

Defined in:
lib/adyen/api.rb,
lib/adyen/api.rb

Defined Under Namespace

Classes: PaymentService, RecurringService, Response, SimpleSOAPClient, XMLQuerier

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_paramsObject

Returns the value of attribute default_params.



16
17
18
# File 'lib/adyen/api.rb', line 16

def default_params
  @default_params
end

.passwordString

Password for the HTTP Basic Authentication that Adyen uses. You can choose your password yourself in the user management tool of the merchant area.

Returns:

  • (String)


14
15
16
# File 'lib/adyen/api.rb', line 14

def password
  @password
end

.usernameString

Username for the HTTP Basic Authentication that Adyen uses. Your username should be something like [email protected]

Returns:

  • (String)


9
10
11
# File 'lib/adyen/api.rb', line 9

def username
  @username
end

Class Method Details

.authorise_payment(params) ⇒ Object

Shortcut methods



25
26
27
# File 'lib/adyen/api.rb', line 25

def self.authorise_payment(params)
  PaymentService.new(params).authorise_payment
end

.authorise_recurring_payment(params) ⇒ Object



29
30
31
# File 'lib/adyen/api.rb', line 29

def self.authorise_recurring_payment(params)
  PaymentService.new(params).authorise_recurring_payment
end

.disable_recurring_contract(shopper_reference, recurring_detail_reference = nil) ⇒ Object



33
34
35
36
37
38
# File 'lib/adyen/api.rb', line 33

def self.disable_recurring_contract(shopper_reference, recurring_detail_reference = nil)
  RecurringService.new({
    :shopper => { :reference => shopper_reference },
    :recurring_detail_reference => recurring_detail_reference
  }).disable
end