Class: PaynetEasy::PaynetEasyApi::Query::Prototype::PaymentQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/paynet_easy/paynet_easy_api/query/prototype/payment_query.rb

Instance Method Summary collapse

Methods inherited from Query

inherited, #initialize, #process_response

Constructor Details

This class inherits a constructor from PaynetEasy::PaynetEasyApi::Query::Prototype::Query

Instance Method Details

#create_request(payment_transaction) ⇒ Request

Returns:



32
33
34
35
36
37
38
39
40
41
# File 'lib/paynet_easy/paynet_easy_api/query/prototype/payment_query.rb', line 32

def create_request(payment_transaction)
  request = super payment_transaction

  payment_transaction.payment.status  = payment_status
  payment_transaction.processor_type  = PaymentTransaction::PROCESSOR_QUERY
  payment_transaction.processor_name  = @api_method
  payment_transaction.status          = PaymentTransaction::STATUS_PROCESSING

  request
end