Class: Adyen::REST::ReauthoriseRecurringPayment::Request

Inherits:
AuthorisePayment::Request show all
Defined in:
lib/adyen/rest/authorise_recurring_payment.rb

Instance Attribute Summary

Attributes inherited from Adyen::REST::Request

#form_data, #prefix, #required_attributes, #response_class, #response_options

Instance Method Summary collapse

Methods inherited from AuthorisePayment::Request

#set_3d_secure_parameters, #set_amount, #set_browser_info, #set_encrypted_card_data

Methods inherited from Adyen::REST::Request

#[], #[]=, #action, #build_response, #merchant_account=, #validate!

Constructor Details

#initialize(action, attributes, options) ⇒ Request



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/adyen/rest/authorise_recurring_payment.rb', line 21

def initialize(action, attributes, options)
  attributes[:recurring] ||= { contract: 'RECURRING' }
  attributes[:shopper_interaction] ||= 'ContAuth'
  attributes[:selected_recurring_detail_reference] ||= 'LATEST'
  super(action, attributes, options)
  @required_attributes += ['paymentRequest.shopperEmail',
    'paymentRequest.shopperReference',
    'paymentRequest.recurring.contract',
    'paymentRequest.shopperInteraction'
  ]
end