- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to specify the delimiter character for the validationDirectResponse that is returned when using the CIM createCustomerPaymentProfileRequest method (when the validationMode is testMode or liveMode)?
The reason I ask is that the createCustomerProfileTransactionRequest method accepts the <extraOptions></extraOptions> element, which enables me to format the validationDirectResponse in a manner of my choosing. It appears that the createCustomerPaymentProfileRequest method offers no such capability.
Is anyone able to confirm?
Thank you for your insights.
Solved! Go to Solution.
07-25-2011 10:32 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no way to set the delmiter programmatically outside of the <extraOptions> element, but you can set the default delmiter for any Authorize.Net account within the account settings. Changing the default delimiter (and optionally the encapsulation character) will apply to the response returned for a createCustomerPaymentProfileRequest.
07-27-2011 04:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no way to set the delmiter programmatically outside of the <extraOptions> element, but you can set the default delmiter for any Authorize.Net account within the account settings. Changing the default delimiter (and optionally the encapsulation character) will apply to the response returned for a createCustomerPaymentProfileRequest.
07-27-2011 04:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the prompt and informative response, Trevor; it was articulate and concise.
While we're on the subject (I hate to start another topic for this), is there any reason of which you're aware that the <extraOptions>...</extraOptions> data would be parsed incorrectly on the Authorize.Net side?
I'm submitting the following (via the createCustomerProfileTransactionRequest method)
<extraOptions><![CDATA[x_delim_data=TRUE&x_delim_char=|&x_customer_ip=127.0.0.1]]></extraOptions>
and in the Transaction Detail view of the sandbox site (CIM -> Customer Profile -> View History -> Transaction Detail), the customer IP line looks like this:
Customer IP: 127.0.0.1]]>
It appears that the closing CDATA tag is being appended. In fact, it seems that whichever parameters are included first and last in the list are affected in this way.
To explain further, in the "Merchant Email Receipt" that is generated as a result of the API request, I find the following (using the same <extraOptions> data that is pasted above):
========== MERCHANT DEFINED =========
%3c!%5bCDATA%5bx_delim_data : TRUE
In this instance, it appears that the opening CDATA tag is being prepended (and URL-encoded).
Any thoughts as to why this is happening? Am I doing something wrong on my end?
Thanks in advance.
07-28-2011 12:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just copied and pasted that extraOptions tag into my own test code, but I was not able to reproduce the behavior that you are describing. The only thing that comes to mind is that you may somehow be double-encapsulating the CDATA string. For example:
<extraOptions><![CDATA[<![CDATA[x_delim_data=TRUE&x_delim_char=|&x_customer_ip=127.0.0.1]]]></extraOptions>
This would cause exactly the behavior that you are describing.
07-28-2011 01:21 PM - edited 07-28-2011 01:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Trevor.
Per your suggestion, I tried removing the encapsulating <![CDATA[]]> tags and now the values appear correctly in the CIM interface on the Authorize.Net developer site (and no API errors are generated).
I also searched my entire application for the strings "extraOptions" and "<