Reply
Highlighted
Member
Posts: 10
Registered: ‎06-28-2013
Accepted Solution

Not Receiving Split Tender Id in response

We are using Magento 1.4.0.1 and trying to implement Partial Transaction functionality on a Checkout page.

The main idea is to use two credit cards for the one checkout process and split Total Order amount between this cards.

We enabled "Allow Partial Payments" in Merchant Account ( http://screencast.com/t/YY5aZcj38TQ ).

Also we tried to use x_allow_partial_auth=TRUE

But in all cases we didn't get Split Tender Id - the key ID value for Partial Transaction.

 

Here is my first request with the first Credit Card data:

 

x_version=>3.1
x_delim_data=>TRUE
x_delim_char=>,
x_relay_response=>FALSE
x_invoice_num=>100006004
x_test_request=>TRUE
x_login=>****
x_tran_key=>****
x_type=>AUTH_ONLY
x_method=>CC
x_amount=>2283.76
x_currency_code=>USD
x_first_name=>test
x_last_name=>test
x_company=>
x_address=>test
x_city=>Northbrook
x_state=>Illinois
x_zip=>60062
x_country=>US
x_phone=>(099) 999-9999
x_fax=>
x_cust_id=>
x_customer_ip=>127.0.0.1
x_customer_tax_id=>
x_email=>test@test.ua
x_email_customer=>0
x_merchant_email=>
x_ship_to_first_name=>test
x_ship_to_last_name=>test
x_ship_to_company=>
x_ship_to_address=>test
x_ship_to_city=>Indianapolis
x_ship_to_state=>Indiana
x_ship_to_zip=>46225
x_ship_to_country=>US
x_po_num=>
x_tax=>0
x_freight=>0
x_card_num=>4111111111111111
x_exp_date=>02-2015
x_card_code=>222
x_allow_partial_auth=>TRUE

 

And here is the response from authprize.net:

response_code=>1
response_subcode=>1
response_reason_code=>1
response_reason_text=>(TESTMODE) This transaction has been approved.
approval_code=>000000
avs_result_code=>P
transaction_id=>0
invoice_number=>100006004
description=>
amount=>2283.76
method=>CC
transaction_type=>auth_only
customer_id=>
md5_hash=>909730813CF4DA5A1A83A370B66F9110
card_code_response_code=>
c_av_vresponse_code=>

 

Here no any Split Tender Id value.

Not sure what can be wrong...

 

Thanks for any help, guys!

 


Accepted Solutions
Solution
Accepted by topic author eugene-magdev
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Not Receiving Split Tender Id in response

You have to do 2 separated transaction.

View solution in original post


All Replies
Posts: 2,765
Topics: 57
Kudos: 245
Blog Posts: 67
Registered: ‎12-05-2011

Re: Not Receiving Split Tender Id in response

Hello eugene,

 

If your response says TEST MODE and your transaction ID is zero, you should instead run transactions in live mode in the sandbox.

 

Richard

Member
Posts: 10
Registered: ‎06-28-2013

Re: Not Receiving Split Tender Id in response

Hi RichardH,

I appreciate for your quick reply. Thank you.

We also tried to switch modes: from test to live (sandbox account). But there still no Split Tender Id value.

Here is request and response:

 



 The Request to Auth.net:

x_version=>3.1
x_delim_data=>True
x_delim_char=>,
x_relay_response=>False
x_invoice_num=>100006006
x_test_request=>FALSE
x_login=>****
x_tran_key=>****
x_type=>AUTH_ONLY
x_method=>CC
x_amount=>20300
x_currency_code=>USD
x_first_name=>test
x_last_name=>test
x_company=>
x_address=>test
x_city=>Indianapolis
x_state=>Indiana
x_zip=>46226
x_country=>US
x_phone=>(099) 999-9999
x_fax=>
x_cust_id=>
x_customer_ip=>127.0.0.1
x_customer_tax_id=>
x_email=>test@test.ua
x_email_customer=>0
x_merchant_email=>
x_ship_to_first_name=>test
x_ship_to_last_name=>test
x_ship_to_company=>
x_ship_to_address=>test
x_ship_to_city=>Indianapolis
x_ship_to_state=>Indiana
x_ship_to_zip=>46226
x_ship_to_country=>US
x_po_num=>
x_tax=>0
x_freight=>0
x_card_num=>4111111111111111
x_exp_date=>03-2017
x_card_code=>123
x_allow_partial_auth=>TRUE


 The Answer From Auth.net:

response_code=>1
response_subcode=>1
response_reason_code=>1
response_reason_text=>This transaction has been approved.
approval_code=>SACZCW
avs_result_code=>Y
transaction_id=>2195178919
invoice_number=>100006006
description=>
amount=>20300.00
method=>CC
transaction_type=>auth_only
customer_id=>
md5_hash=>AF2127BABACDA948303E778429D2EF94
card_code_response_code=>P
c_av_vresponse_code=>2

 

Not sure what can be wrong here...

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Not Receiving Split Tender Id in response

You need to use 46225

46226 mean it got the full amount and will not have a split trender id.

Member
Posts: 10
Registered: ‎06-28-2013

Re: Not Receiving Split Tender Id in response

Hi RaynorC1emen7,

 

Thank you for your answer.

I just tried to use ZIP code 46225, have some small success, but still don't have Split tender Id.

And have two separate transactions, that needs to be fulfill

 

Here is my account transactions:

http://screencast.com/t/0l0qxHPU6

http://screencast.com/t/iPB5HMg4C

 

And here is my result:


 The Request to Auth.net:

x_version=>3.1
x_delim_data=>True
x_delim_char=>,
x_relay_response=>False
x_invoice_num=>100006008
x_test_request=>FALSE
x_login=>****
x_tran_key=>****
x_type=>AUTH_ONLY
x_method=>CC
x_amount=>20300
x_currency_code=>USD
x_first_name=>test
x_last_name=>test
x_company=>
x_address=>test
x_city=>Indianapolis
x_state=>Indiana
x_zip=>46225
x_country=>US
x_phone=>(099) 999-9999
x_fax=>
x_cust_id=>
x_customer_ip=>127.0.0.1
x_customer_tax_id=>
x_email=>test@test.ua
x_email_customer=>0
x_merchant_email=>
x_ship_to_first_name=>test
x_ship_to_last_name=>test
x_ship_to_company=>
x_ship_to_address=>test
x_ship_to_city=>Indianapolis
x_ship_to_state=>Indiana
x_ship_to_zip=>46225
x_ship_to_country=>US
x_po_num=>
x_tax=>0
x_freight=>0
x_card_num=>4111111111111111
x_exp_date=>06-2016
x_card_code=>222
x_allow_partial_auth=>TRUE


 The Answer From Auth.net:

response_code=>4
response_subcode=>1
response_reason_code=>295
response_reason_text=>The amount of this request was only partially approved on the given prepaid card. An additional payment is required to fulfill the balance of this transaction.
approval_code=>R3O1KM
avs_result_code=>Y
transaction_id=>2195179898
invoice_number=>100006008
description=>
amount=>1.23
method=>CC
transaction_type=>auth_only
customer_id=>
md5_hash=>7DB4C2D515C534417D74FDEDB9F58C8F
card_code_response_code=>P
c_av_vresponse_code=>2

 

Thank you for your help, guys.

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Not Receiving Split Tender Id in response

Order Number: 110209

That the split id.

 

Not sure why you are not getting it from the response. How are you looking for the split tender id?

Member
Posts: 10
Registered: ‎06-28-2013

Re: Not Receiving Split Tender Id in response

Hi again,

 

I found that Magento filtering response data and gets only some parameters. And there no Split Tender Id.

I rewrited file app/code/core/Mage/Paygate/Model/Authorizenet.php and added this parameter there:

http://screencast.com/t/tyajjMhPdYX

 

After this changes I used ZIP Code 46225 in checkout and successfuly placed an order with two Credit Cards using Split Tender Id. Here is my result in Merchnt Dashboard: http://screencast.com/t/Ej5ON2Kr

And here is my Magento settings: http://screencast.com/t/lPugD3C2

 

Ok, it is works, and this is good.

But in test account there only '$1.23' for each Credit Card, and I need to test different amounts.

 

I used our Live authorize.net merchant account with the same settings and after order was placed I found that Split Tender Id wasn't reseived and there was created two different Transactions with total amount each... I used two Live credit cards.

 

But on test accaunt it works fine...

 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Not Receiving Split Tender Id in response

The Triggering Specific Transaction Responses Zip Code only work on the test server.

If you need to test that on the live/production server. You will need to get a prepaid card and do a auth_only on it.

Member
Posts: 10
Registered: ‎06-28-2013

Re: Not Receiving Split Tender Id in response

Hi,

Thanks again for your help.

We are using existing address in checkout and prepaid credit cards, but for some reason can't receive split tender id.

Here is our latest info:

 

 The Request to Auth.net:

x_version=>3.1
x_delim_data=>True
x_delim_char=>,
x_relay_response=>False
x_invoice_num=>100007264
x_test_request=>FALSE
x_login=>****
x_tran_key=>****
x_type=>AUTH_ONLY
x_method=>CC
x_amount=>4.53
x_currency_code=>USD
x_first_name=>****
x_last_name=>****
x_company=>
x_address=>****
x_city=>Brooklyn
x_state=>New York
x_zip=>11204
x_country=>US
x_phone=>(999) 999-9999
x_fax=>
x_cust_id=>
x_customer_ip=>****
x_customer_tax_id=>
x_email=>****@****
x_email_customer=>0
x_merchant_email=>
x_ship_to_first_name=>****
x_ship_to_last_name=>****
x_ship_to_company=>
x_ship_to_address=>****
x_ship_to_city=>Brooklyn
x_ship_to_state=>New York
x_ship_to_zip=>11204
x_ship_to_country=>US
x_po_num=>
x_tax=>0.53
x_freight=>0
x_card_num=>4****8
x_exp_date=>****
x_card_code=>****
x_allow_partial_auth=>TRUE


 The Answer From Auth.net:

response_code=>2
response_subcode=>2
response_reason_code=>65
response_reason_text=>This transaction has been declined.
approval_code=>09567C
avs_result_code=>Y
transaction_id=>5355470023
invoice_number=>100007264
description=>
amount=>4.53
method=>CC
transaction_type=>auth_only
customer_id=>
md5_hash=>3E9A5E0C244B168F0D64D7057CC1C2BF
card_code_response_code=>N
c_av_vresponse_code=>
acc_number=>4XXXX8
card_type=>Visa
split_tender_id=>
requested_amount=>
balance_on_card=>

 

As you can see - split_tender_id is empty, but on test account it is not empty. Is it possible the source of the issue is in amounts, which I'm sending with each Credit Card? On test account it is $1.23 by default, and it is works there. But on Live account - is not, maybe because I'm sending wrong amounts or something like this?

Thanks

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Not Receiving Split Tender Id in response

[ Edited ]

It not going to give you a split id if it is declined response_reason_text=>This transaction has been declined.

 

reason code 65 response_reason_code=>65

The transaction was declined because the merchant configured their account through the Merchant Interface to reject transactions with certain values for a Card Code mismatch.

 

And you will only get a split id if the requested amount is greater then what the available fund is on that prepaid card.