Class: Buckaruby::RecurrentTransactionRequest

Inherits:
TransactionRequest show all
Defined in:
lib/buckaruby/request.rb

Overview

Request for a creating a recurrent transaction.

Instance Method Summary collapse

Methods inherited from TransactionRequest

#build_request_params, #operation

Methods inherited from Request

#build_request_params, #execute, #initialize, #operation

Constructor Details

This class inherits a constructor from Buckaruby::Request

Instance Method Details

#build_transaction_request_params(options) ⇒ Object



155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/buckaruby/request.rb', line 155

def build_transaction_request_params(options)
  params = {}

  key = :"brq_service_#{options[:payment_method]}_action"
  params[key] = Action::PAY_RECURRENT

  # Indicate that this is a request without user redirection to a webpage.
  # This is needed to make recurrent payments working.
  params[:brq_channel] = 'backoffice'

  params[:brq_originaltransaction] = options[:transaction_id]

  params
end