Class: Datatrans::JSON::Transaction::MerchantAuthorizeResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/datatrans/json/transaction/merchant_authorize.rb

Instance Attribute Summary

Attributes inherited from Response

#datatrans, #params

Instance Method Summary collapse

Methods inherited from Response

#error_code, #error_message, #initialize

Constructor Details

This class inherits a constructor from Datatrans::JSON::Transaction::Response

Instance Method Details

#successful?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/datatrans/json/transaction/merchant_authorize.rb', line 41

def successful?
  params["error"].blank? && params["transactionId"].present?
end