I have an app that allows users to submit and refund cc/eCheck payments.
I have a question on efunding eCheck transactions.
For Refund a Transaction endpoint, if payment is bankAccount, the API seems to require account (last four), aba routing (last four) and name on account. I am getting this to work fine by stubbing those values so that's a good sign.
Ideally, when I initially make an eCheck payment I would like to save account (last four), aba routing (last four) and name on account on a payment record saved to my db.
Below is the response I get when submitting an eCheck payment. I get back x_account_number which is the bankAccount account number, but I do not get back the routing or name on card.
Does anyone know if this is possible?
The Authorizenet Ruby SDK does have AuthorizeNet::API::GetTransactionDetailsRequest which I can pull off masked account, masked routing and name on account, but still wondering if I can access those details in the SIM Response for eCheck.
#<AuthorizeNet::SIM::Response:0x007fade3e2e850
@custom_fields=
{:x_card_type=>"",
:x_account_number=>"XXXX1213",
:x_SHA2_Hash=>"",
:x_test_request=>"false",
:commit=>"Purchase",
:controller=>"auth_net_relays",
:action=>"create",
:event_id=>"494123"},
@fields=
{:response_code=>"1",
:response_reason_code=>"1",
:response_reason_text=>"This transaction has been approved.",
:avs_code=>"P",
:auth_code=>"",
:trans_id=>"40383951618",
:method=>"ECHECK",
:first_name=>"Brian",
:last_name=>"Ng",
:company=>"",
:address=>"4200 Canal St Suite E",
:city=>"New Orleans",
:state=>"LA",
:zip=>"70116",
:country=>"",
:phone=>"",
:fax=>"",
:email=>"",
:invoice_num=>"GNO494123",
:description=>"",
:type=>"auth_capture",
:cust_id=>"",
:ship_to_first_name=>"",
:ship_to_last_name=>"",
:ship_to_company=>"",
:ship_to_address=>"",
:ship_to_city=>"",
:ship_to_state=>"",
:ship_to_zip=>"",
:ship_to_country=>"",
:amount=>"1.60",
:tax=>"0.00",
:duty=>"0.00",
:freight=>"0.00",
:tax_exempt=>"FALSE",
:po_num=>"",
:MD5_Hash=>"0386BBC39796075109FCF17FE804E71B",
:cvv2_resp_code=>"",
:cavv_response=>""},
@raw_response=
{"x_response_code"=>"1",
"x_response_reason_code"=>"1",
"x_response_reason_text"=>"This transaction has been approved.",
"x_avs_code"=>"P",
"x_auth_code"=>"",
"x_trans_id"=>"40383951618",
"x_method"=>"ECHECK",
"x_card_type"=>"",
"x_account_number"=>"XXXX1213",
"x_first_name"=>"Brian",
"x_last_name"=>"Ng",
"x_company"=>"",
"x_address"=>"4200 Canal St Suite E",
"x_city"=>"New Orleans",
"x_state"=>"LA",
"x_zip"=>"70116",
"x_country"=>"",
"x_phone"=>"",
"x_fax"=>"",
"x_email"=>"",
"x_invoice_num"=>"GNO494123",
"x_description"=>"",
"x_type"=>"auth_capture",
"x_cust_id"=>"",
"x_ship_to_first_name"=>"",
"x_ship_to_last_name"=>"",
"x_ship_to_company"=>"",
"x_ship_to_address"=>"",
"x_ship_to_city"=>"",
"x_ship_to_state"=>"",
"x_ship_to_zip"=>"",
"x_ship_to_country"=>"",
"x_amount"=>"1.60",
"x_tax"=>"0.00",
"x_duty"=>"0.00",
"x_freight"=>"0.00",
"x_tax_exempt"=>"FALSE",
"x_po_num"=>"",
"x_MD5_Hash"=>"0386BBC39796075109FCF17FE804E71B",
"x_SHA2_Hash"=>"",
"x_cvv2_resp_code"=>"",
"x_cavv_response"=>"",
"x_test_request"=>"false",
"commit"=>"Purchase",
"controller"=>"auth_net_relays",
"action"=>"create",
"event_id"=>"494123"}>