Hi,
Late Tueseday 9/5 I was trying to issue a VOID or CREDIT on txnid=60029123853 generated earlier in the day. The Transaction Search Report from sandbox.authorize.net shows it to be in "Pending Settlement" at the time of the transaction. My code 1st attempts a VOID, and if an error is returned it then tries a CREDIT.
The error "The transaction cannot be found" on the VOID is what I normally receive when the txn has already settled and is unavailable for a VOID. The subsequent CREDIT txn would usually then proceed with an APPROVAL.
In this case, I get back the Not Found error message when I would expect an APPROVAL, since the original AUTH has not yet settled. Or is "Pending Settlement" some in-between state?
My log file with the transaction object embedded follows ...
# Logfile created on 2017-09-06 00:37:27 +0000 by logger.rb/47272
I, [2017-09-06 00:37:27 #17430] INFO -- CCACHutils.rb: BA#: 899786
I, [2017-09-06 00:37:27 #17430] INFO -- CCACHutils.rb: $debug= false; $testmode= FALSE
I, [2017-09-06 00:37:27 #17430] INFO -- CCACHutils.rb: TXNTYPE: CREDIT; TTYPE: ACH; AMT: 3.10; ORIGAMT: 3.10; TXNID: 60029123853
I, [2017-09-06 00:37:27 #17430] INFO -- CCACHutils.rb: SANDBOX: true
I, [2017-09-06 00:37:27 #17430] INFO -- CCACHutils.rb: ACH_ACCTNO: XXXXXXXXXXXX8399; ACH_ROUTING_CODE: 091905444; ACH_ACCT_TYPE: BUSINESSCHECKING; ACH_ACCT_NAME: roger dodger;
E, [2017-09-06 00:37:29 #17430] ERROR -- CCACHutils.rb: Payment error message: VOID: The transaction cannot be found.
I, [2017-09-06 00:37:29 #17430] INFO -- CCACHutils.rb: Try CREDIT ...
E, [2017-09-06 00:37:29 #17430] ERROR -- CCACHutils.rb: Payment error message: The transaction cannot be found.
E, [2017-09-06 00:37:29 #17430] ERROR -- CCACHutils.rb: (charge_cc_ach: Authorize.Net CREDIT rejected: The transaction cannot be found.
I, [2017-09-06 00:37:29 #17430] INFO -- CCACHutils.rb: Authorize.Net ACH response: 3,2,16,The transaction cannot be found.,,P,0,,,3.10,ECHECK,credit,,,,,,,,,,,,,,,,,,,,,,,,,,1B6C7BC26C6E7FF0DB658B384C34674D,,,,,,,,,,,,,XXXX8399,Bank Account,,,,,,,,,,,,,,,,,
I, [2017-09-06 00:37:29 #17430] INFO -- CCACHutils.rb: Authorize.Net ACH complete $authorize_net_xactn: #<Payment::AuthorizeNet:0x007f8dce73a8d0 @url="https://test.authorize.net/gateway/transact.dll", @delim_data="TRUE", @relay_response="FALSE", @version="3.1", @type="CREDIT", @method="ECHECK", @transaction_id="0", @Test_transaction=false, @login="XXXXXXXX", @password=nil, @transaction_key="XXXXXXXXXXXXXXXX", @amount="3.10", @routing_code="091905444", @account_number="XXXX8399", @account_type="BUSINESSCHECKING", @bank_name="Minnesota Lakes Bank", @account_name="roger dodger", @required=["method", "type", "login", "test_request", "delim_data", "relay_response", "transaction_key", "amount", "routing_code", "account_number", "account_type", "bank_name", "account_name"], @Test_request="FALSE", @data="x_Method=ECHECK&x_Type=CREDIT&x_Login=XXXXXXXX&x_Tran_Key=XXXXXXXXXXXXXXXX&x_Amount=3.10&x_Trans_ID=60029123853&x_Bank_Acct_Name=roger+dodger&x_Bank_Acct_Num=XXXX8399&x_Bank_Acct_Type=BUSINESSCHECKING&x_Bank_Name=Minnesota+Lakes+Bank&x_Bank_ABA_Code=091905444&x_Test_Request=FALSE&x_Delim_Data=TRUE&x_Relay_Response=FALSE&x_Version=3.1", @response_plain="3,2,16,The transaction cannot be found.,,P,0,,,3.10,ECHECK,credit,,,,,,,,,,,,,,,,,,,,,,,,,,1B6C7BC26C6E7FF0DB658B384C34674D,,,,,,,,,,,,,XXXX8399,Bank Account,,,,,,,,,,,,,,,,,", @response="3,2,16,The transaction cannot be found.,,P,0,,,3.10,ECHECK,credit,,,,,,,,,,,,,,,,,,,,,,,,,,1B6C7BC26C6E7FF0DB658B384C34674D,,,,,,,,,,,,,XXXX8399,Bank Account,,,,,,,,,,,,,,,,,", @result_code=3, @result_reason_code="16", @result_reason="The transaction cannot be found.", @authorization="", @avs_code="P", @order_number="0", @md5="1B6C7BC26C6E7FF0DB658B384C34674D", @cvv2_response="", @cavv_response="", @error_code="16", @error_message="The transaction cannot be found.">
I, [2017-09-06 00:37:29 #17430] INFO -- CCACHutils.rb: @result_code=3
Can you see the reason for this response?
Thanks,
Dick Wieland
WIline Inc
โ09-06-2017 09:33 AM
Hi @rwielandU2050,
In that scenario, if the transaction has not yet settled, I wouldn't expect the credit to work. I would expect to have to do a void in that scenario. What was the response to the initial void request?
โ09-06-2017 09:59 AM
Payment error message: VOID: The transaction cannot be found.
โ09-06-2017 07:10 PM
Can you provide the actual response from our system?
โ09-06-2017 08:29 PM
I supplied it for the CREDIT. I didn't capture it for the VOID, unfortunately. Can you look it up in your system logs?
โ09-07-2017 08:46 AM
I don't know if we'd have a log of a not found request in the sandbox or not. I did look at that transaction and your credit request was sent right after settlement. I wonder if there's some sort of delay around settlement in sandbox where the transaction is no longer available to void, but not yet available to refund.
If you were to try the same request right now, does it work?
โ09-07-2017 11:20 AM