- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get createCustomerProfileTransactionResponse XML output (Magento)
Hey,
Unfortunately I need your help. I want to debug an extension which is using the Authorize API. Therefore I want to catch the XML which you will find in http://www.authorize.net/support/CIM_XML_guide.pdf on page 84:
<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileTransactionResponse xmlns="AnetApi/xml/v1/schema/
AnetApiSchema.xsd">
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<directResponse>1,1,1,This transaction has been
approved.,000000,Y,2000000001,INV000001,description of
transaction,10.95,CC,auth_capture,custId123,John,Doe,,123 Main
St.,Bellevue,WA,98004,USA,000-000-0000,,mark@example.com,John,Doe,,123
Main St.,Bellevue,WA,98004,USA,1.00,0.00,2.00,FALSE,PONUM000001,
D18EB6B211FE0BBF556B271FDA6F92EE,M,2,,,,,,,,,,,,,,,,,,,,,,,,,,,,
</directResponse>
</createCustomerProfileTransactionResponse>
(Output for createCustomerProfileTransactionResponse (page 84))
But how do I do that? I always only get access to a specific field. My complete response always looks like this:
2013-10-23T22:53:54+00:00 DEBUG (7): รฏยปยฟ<?xml version="1.0" encoding="utf-8"?><getCustomerProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><profile><merchantCustomerId>1833</merchantCustomerId><description /><email>mail@localhost.com</email><customerProfileId>83310309</customerProfileId></profile></getCustomerProfileResponse>
How can I get the createCustomerProfileTransactionResponse XML output?
Any help is really appreciate. Thank you very much in advance,
Stefan
โ10-23-2013 04:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By stripping out the extra text in the front? not sure what are you try to ask.
โ10-23-2013 05:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, thank you for you help. But what do you mean with stripping out the extra text? I want to log the API response from Authorize.net.
The problem is, that the payment gets declined. I contacted Authorize to get rid of the issue. But they want to know how the response looks like.
I logged the xml response, but they said that they need the one from "createCustomerProfileTransactionResponse" (please look p. 84) But I have no idea how to get exact this XML.
Any ideas?
Thank you so much for every hint!
โ10-24-2013 07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How ever you logging getCustomerProfileResponse from getCustomerProfile do the same when you do createCustomerProfileTransaction
โ10-24-2013 07:25 AM