You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I support a multi-tenet application and we work with customers who have their own authorize.net accounts. Some of these customers have ApplePay enabled, and in general, things have been fine with processing Apple Pay transactions through authorize.net for these clients.
However, we brought on a new client where Apple Pay isn't working for them. When we try to process an Apple Pay transaction, we're getting the following error message:
There was an error processing the payment data. Opaque data can only be used with ECOM market type.
Here is the XML being sent in this particular case:
"HTTP/1.1 200 OK[\r][\n]"
"Cache-Control: no-cache, no-store, max-age=0[\r][\n]"
"Pragma: no-cache[\r][\n]"
"Content-Type: application/xml; charset=utf-8[\r][\n]"
"Expires: -1[\r][\n]"
"X-OPNET-Transaction-Trace: 5dc25ad7-be0f-43e8-8023-adefc14aae84-12960-2197946[\r][\n]"
"Access-Control-Allow-Credentials: true[\r][\n]"
"Access-Control-Allow-Headers: x-requested-with,cache-control,content-type,origin,method,SOAPAction[\r][\n]"
"Access-Control-Allow-Methods: PUT,OPTIONS,POST,GET[\r][\n]"
"Access-Control-Allow-Origin: *[\r][\n]"
"X-Download-Options: noopen[\r][\n]"
"Strict-Transport-Security: max-age=31536000[\r][\n]"
"X-Cnection: close[\r][\n]"
"Date: Thu, 13 Apr 2023 15:16:42 GMT[\r][\n]"
"Content-Length: 834[\r][\n]"
"[\r][\n]"
"[0xef][0xbb][0xbf]<?xml version="1.0" encoding="utf-8"?><createTransactionResponse 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>Error</resultCode><message><code>E00027</code><text>The transaction was unsuccessful.</text></message></messages><transactionResponse><responseCode>3</responseCode><authCode /><avsResultCode>P</avsResultCode><cvvResultCode /><cavvResultCode /><transId>0</transId><refTransID /><transHash /><testRequest>0</testRequest><accountNumber /><accountType /><errors><error><errorCode>153</errorCode><errorText>There was an error processing the payment data. Opaque data can only be used with ECOM market type.</errorText></error></errors><transHashSha2 /></transactionResponse></createTransactionResponse>"
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, max-age=0
Pragma: no-cache
Content-Type: application/xml; charset=utf-8
Expires: -1
X-OPNET-Transaction-Trace: 5dc25ad7-be0f-43e8-8023-adefc14aae84-12960-2197946
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: x-requested-with,cache-control,content-type,origin,method,SOAPAction
Access-Control-Allow-Methods: PUT,OPTIONS,POST,GET
Access-Control-Allow-Origin: *
X-Download-Options: noopen
Strict-Transport-Security: max-age=31536000
X-Cnection: close
Date: Thu, 13 Apr 2023 15:16:42 GMT
I tried to look through the sdk-java code to see if there was a way where I could specify an ECON marketType in the request, but the only thing I found was a MarketType enum whose only value was RETAIL. So I'm not sure how to further troubleshoot this issue.
The text was updated successfully, but these errors were encountered:
I have resolved this. Even though the MarketType enum only has support for RETAIL (with a value of 2), I found that the ECOM type is "0". So given that, I added the following
TransRetailInfoType transRetailInfoType = new TransRetailInfoType();
transRetailInfoType.setMarketType("0");
Then at some point later, I set the TransRetailInfoType on the TransactionRequestType:
TransactionRequestType transactionRequestType = new TransactionRequestType();
transactionRequestType.setRetail(transRetailInfoType);
I have tested this with the problematic account, and it does work. I also tested it with the accounts that were previously working, and those work as well.
I support a multi-tenet application and we work with customers who have their own authorize.net accounts. Some of these customers have ApplePay enabled, and in general, things have been fine with processing Apple Pay transactions through authorize.net for these clients.
However, we brought on a new client where Apple Pay isn't working for them. When we try to process an Apple Pay transaction, we're getting the following error message:
Here is the XML being sent in this particular case:
And here is the response:
I tried to look through the sdk-java code to see if there was a way where I could specify an ECON marketType in the request, but the only thing I found was a MarketType enum whose only value was RETAIL. So I'm not sure how to further troubleshoot this issue.
The text was updated successfully, but these errors were encountered: