Class: Adyen::REST::ReauthoriseRecurringPayment::Request
- Inherits:
-
AuthorisePayment::Request
- Object
- Adyen::REST::Request
- AuthorisePayment::Request
- Adyen::REST::ReauthoriseRecurringPayment::Request
- 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
-
#initialize(action, attributes, options) ⇒ Request
constructor
A new instance of Request.
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
Returns a new instance of 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, ) attributes[:recurring] ||= { contract: 'RECURRING' } attributes[:shopper_interaction] ||= 'ContAuth' attributes[:selected_recurring_detail_reference] ||= 'LATEST' super(action, attributes, ) @required_attributes += ['paymentRequest.shopperEmail', 'paymentRequest.shopperReference', 'paymentRequest.recurring.contract', 'paymentRequest.shopperInteraction' ] end |