Hi,
I am confused by what I am seeing on my sandbox account (rwielandU2050) for txnid=60039183505.
Doing a Search>Settled Transactions > Search Results I see that it is ”Pending Settlement”.
Yet when I confirm that in my code by issuing a query to the Transaction Details API and then go on to do either a VOID (if it’s pending) or a CREDIT(if it’s settled) I get this response …
[can you explain “the transaction not found”?] Thanks, Dick W
(byebug) require 'pp'
true
(byebug) pp an_response
#<AuthorizeNet::API::CreateTransactionResponse:0x007f38a4e95708
@messages=
#<AuthorizeNet::API::MessagesType:0x007f38a45a87a8
@messages=
[#<AuthorizeNet::API::MessagesType::Message:0x007f38a5a2cc10
@code="E00027",
@roxml_references=
[#<ROXML::XMLTextRef:0x007f38a5a3af90
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::MessagesType::Message:0x007f38a5a2cc10 ...>,
@opts=
#<ROXML::Definition:0x007f38a4d43850
@accessor="code",
@array=false,
@attr_name="code",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="code",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a5a39f50
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::MessagesType::Message:0x007f38a5a2cc10 ...>,
@opts=
#<ROXML::Definition:0x007f38a47f12a8
@accessor="text",
@array=false,
@attr_name="text",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="text",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>],
@text="The transaction was unsuccessful.">],
@resultCode="Error",
@roxml_references=
[#<ROXML::XMLTextRef:0x007f38a45830e8
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::MessagesType:0x007f38a45a87a8 ...>,
@opts=
#<ROXML::Definition:0x007f38a591e5f8
@accessor="resultCode",
@array=false,
@attr_name="resultCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="resultCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a456b0b0
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::MessagesType:0x007f38a45a87a8 ...>,
@opts=
#<ROXML::Definition:0x007f38a57ecc98
@accessor="messages",
@array=true,
@attr_name="messages",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="message",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::MessagesType::Message,
@to_xml=nil,
@wrapper=nil>>]>,
@profileResponse=nil,
@refId=nil,
@roxml_references=
[#<ROXML::XMLTextRef:0x007f38a4e8a218
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::CreateTransactionResponse:0x007f38a4e95708 ...>,
@opts=
#<ROXML::Definition:0x007f38a58b71a0
@accessor="refId",
@array=false,
@attr_name="refId",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="refId",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a4e87090
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::CreateTransactionResponse:0x007f38a4e95708 ...>,
@opts=
#<ROXML::Definition:0x007f38a5834ed0
@accessor="messages",
@array=false,
@attr_name="messages",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="messages",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::MessagesType,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a4e84c28
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::CreateTransactionResponse:0x007f38a4e95708 ...>,
@opts=
#<ROXML::Definition:0x007f38a5798738
@accessor="sessionToken",
@array=false,
@attr_name="sessionToken",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="sessionToken",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a4e824a0
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::CreateTransactionResponse:0x007f38a4e95708 ...>,
@opts=
#<ROXML::Definition:0x007f38a5a6ab78
@accessor="transactionResponse",
@array=false,
@attr_name="transactionResponse",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="transactionResponse",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::TransactionResponse,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a4d7bae8
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::CreateTransactionResponse:0x007f38a4e95708 ...>,
@opts=
#<ROXML::Definition:0x007f38a58bed10
@accessor="profileResponse",
@array=false,
@attr_name="profileResponse",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="profileResponse",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::CreateProfileResponse,
@to_xml=nil,
@wrapper=nil>>],
@sessionToken=nil,
@transactionResponse=
#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98
@accountNumber="XXXX8399",
@accountType="eCheck",
@authCode="",
@avsResultCode="P",
@cavvResultCode="",
@cvvResultCode="",
@emvResponse=nil,
@errors=
#<AuthorizeNet::API::TransactionResponse::Errors:0x007f38a5094888
@errors=
[#<AuthorizeNet::API::TransactionResponse::Errors::Error:0x007f38a5062c48
@errorCode="16",
@errorText="The transaction cannot be found.",
@roxml_references=
[#<ROXML::XMLTextRef:0x007f38a5060858
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::TransactionResponse::Errors::Error:0x007f38a5062c48
...>,
@opts=
#<ROXML::Definition:0x007f38a573f228
@accessor="errorCode",
@array=false,
@attr_name="errorCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="errorCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a505ee90
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::TransactionResponse::Errors::Error:0x007f38a5062c48
...>,
@opts=
#<ROXML::Definition:0x007f38a59a0d78
@accessor="errorText",
@array=false,
@attr_name="errorText",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="errorText",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>]>],
@roxml_references=
[#<ROXML::XMLObjectRef:0x007f38a508e4d8
@default_namespace="xmlns",
@instance=
#<AuthorizeNet::API::TransactionResponse::Errors:0x007f38a5094888
...>,
@opts=
#<ROXML::Definition:0x007f38a5796668
@accessor="errors",
@array=true,
@attr_name="errors",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="error",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::TransactionResponse::Errors::Error,
@to_xml=nil,
@wrapper=nil>>]>,
@messages=nil,
@prePaidCard=nil,
@profile=nil,
@rawResponseCode=nil,
@refTransID="60039183515",
@responseCode="3",
@roxml_references=
[#<ROXML::XMLTextRef:0x007f38a5a46a48
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a5911e98
@accessor="responseCode",
@array=false,
@attr_name="responseCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="responseCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a5a45698
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a589e7e0
@accessor="rawResponseCode",
@array=false,
@attr_name="rawResponseCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="rawResponseCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a5a44608
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a57cbea8
@accessor="authCode",
@array=false,
@attr_name="authCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="authCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a57a2fd0
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a57717c8
@accessor="avsResultCode",
@array=false,
@attr_name="avsResultCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="avsResultCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a57a15b8
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a5a21748
@accessor="cvvResultCode",
@array=false,
@attr_name="cvvResultCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="cvvResultCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a57a0488
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a5838008
@accessor="cavvResultCode",
@array=false,
@attr_name="cavvResultCode",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="cavvResultCode",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a57929a0
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a59c5c90
@accessor="transId",
@array=false,
@attr_name="transId",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="transId",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a57915c8
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a58a6440
@accessor="refTransID",
@array=false,
@attr_name="refTransID",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="refTransID",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a57902e0
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a57c6638
@accessor="transHash",
@array=false,
@attr_name="transHash",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="transHash",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a5a62f68
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a571dec0
@accessor="testRequest",
@array=false,
@attr_name="testRequest",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="testRequest",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a5a616b8
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a59930d8
@accessor="accountNumber",
@array=false,
@attr_name="accountNumber",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="accountNumber",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a572bf48
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a58bce98
@accessor="accountType",
@array=false,
@attr_name="accountType",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="accountType",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a572ab20
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a585d9c0
@accessor="splitTenderId",
@array=false,
@attr_name="splitTenderId",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="splitTenderId",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a5728f28
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a580e0c8
@accessor="prePaidCard",
@array=false,
@attr_name="prePaidCard",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="prePaidCard",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::TransactionResponse::PrePaidCard,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a59af698
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a57f1c98
@accessor="messages",
@array=false,
@attr_name="messages",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="messages",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::TransactionResponse::Messages,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a59ad528
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a57ce6f8
@accessor="errors",
@array=false,
@attr_name="errors",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="errors",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::TransactionResponse::Errors,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a599b800
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a577b8e0
@accessor="splitTenderPayments",
@array=false,
@attr_name="splitTenderPayments",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="splitTenderPayments",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=
AuthorizeNet::API::TransactionResponse::SplitTenderPayments,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a599a338
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a4ffe900
@accessor="userFields",
@array=false,
@attr_name="userFields",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="userFields",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::UserFields,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a5998858
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a50d0400
@accessor="shipTo",
@array=false,
@attr_name="shipTo",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="shipTo",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::NameAndAddressType,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a5986c20
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a50551b0
@accessor="secureAcceptance",
@array=false,
@attr_name="secureAcceptance",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="secureAcceptance",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::TransactionResponse::SecureAcceptance,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a59849e8
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a4f9e7a8
@accessor="emvResponse",
@array=false,
@attr_name="emvResponse",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="emvResponse",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::TransactionResponse::EmvResponse,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLTextRef:0x007f38a59828a0
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a4f5d550
@accessor="transHashSha2",
@array=false,
@attr_name="transHashSha2",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="transHashSha2",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=:text,
@to_xml=nil,
@wrapper=nil>>,
#<ROXML::XMLObjectRef:0x007f38a5980f50
@default_namespace="xmlns",
@instance=#<AuthorizeNet::API::TransactionResponse:0x007f38a58edf98 ...>,
@opts=
#<ROXML::Definition:0x007f38a4f3dde0
@accessor="profile",
@array=false,
@attr_name="profile",
@blocks=[],
@cdata=nil,
@default=nil,
@frozen=nil,
@name="profile",
@name_explicit=false,
@namespace=nil,
@required=nil,
@sought_type=AuthorizeNet::API::CustomerProfileIdType,
@to_xml=nil,
@wrapper=nil>>],
@secureAcceptance=nil,
@shipTo=nil,
@splitTenderId=nil,
@splitTenderPayments=nil,
@testRequest="0",
@transHash="71A8A600FEF1260F87C98C5B365E9F80",
@transHashSha2="",
@transId="0",
@userFields=nil>>
01-27-2018 02:51 PM