lib/payanyway/request/check.rb in payanyway-1.2.6 vs lib/payanyway/request/check.rb in payanyway-2.0.0
- old
+ new
@@ -14,11 +14,11 @@
}
@@_params = {
'MNT_COMMAND' => :command,
'MNT_ID' => :moneta_id,
- 'MNT_TRANSACTION_ID' => :order_id,
+ 'MNT_TRANSACTION_ID' => :transaction_id,
'MNT_OPERATION_ID' => :operation_id,
'MNT_AMOUNT' => :amount,
'MNT_CURRENCY_CODE' => :currency,
'MNT_SUBSCRIBER_ID' => :subscriber_id,
'MNT_TEST_MODE' => :test_mode,
@@ -70,10 +70,10 @@
def base_xml(amount, state, description)
xml = <<-EOXML
<MNT_RESPONSE>
<MNT_ID>#{ Payanyway::Gateway.config['moneta_id'] }</MNT_ID>
- <MNT_TRANSACTION_ID>#{ @pretty_params[:order_id] }</MNT_TRANSACTION_ID>
+ <MNT_TRANSACTION_ID>#{ @pretty_params[:transaction_id] }</MNT_TRANSACTION_ID>
<MNT_RESULT_CODE>#{ result_code_of(amount, state) }</MNT_RESULT_CODE>
<MNT_DESCRIPTION>#{ description }</MNT_DESCRIPTION>
<MNT_AMOUNT>#{ amount }</MNT_AMOUNT>
</MNT_RESPONSE>
EOXML