cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Regarding the Transaction Declined issue

Hello,

We are facing an Authorization issue with one of our client when we send the Transaction request to your API.

The scenario is like, We are sending the Authorization request using the "Payment Profile ID" to your API as per the Request given below:
(Please Note, We have removed the Transaction key from the below request because of security reason)

Request:
<?xml version="1.0" encoding="utf-8"?><createTransactionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication><name>2L4byMA7d8</name> <transactionKey>****</transactionKey> </merchantAuthentication>
<transactionRequest><transactionType>authOnlyTransaction</transactionType> <amount>1436.00</amount>
<profile><customerProfileId>XXXX</customerProfileId> <paymentProfile><paymentProfileId>XXXX</paymentProfileId> </paymentProfile></profile>
<solution><id>AAA171470</id> </solution><order><invoiceNumber>3381626-B</invoiceNumber> <description>Slipcover Shop</description> </order>
<customer><id>37750</id> </customer> <shipTo><firstName>Karene</firstName> <lastName>Infranco</lastName> <address>10 Mohawk Road</address> <city>SHORT HILLS</city> <state>New Jersey</state> <zip>07078</zip> <country>United States</country> </shipTo>
<transactionSettings><setting><settingName>allowPartialAuth</settingName> <settingValue>true</settingValue> </setting> <setting><settingName>testRequest</settingName> <settingValue>FALSE</settingValue> </setting> </transactionSettings>
<userFields><userField><name>Tax</name> <value>0</value> </userField> <userField><name>Freight</name> <value>Fedex Home Delivery (Free Shipping)|0</value> </userField>
<userField><name>IP Address</name> <value>24.103.65.226</value> </userField> </userFields></transactionRequest></createTransactionRequest>

Based on the above request we are getting the response from API as below.

Response :
<?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>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><transactionResponse>
<responseCode>2</responseCode><authCode /><avsResultCode>Y</avsResultCode><cvvResultCode /><cavvResultCode /><transId>42332710324</transId><refTransID /><transHash />
<testRequest>0</testRequest><accountNumber>XXXX7561</accountNumber><accountType>Visa</accountType><errors><error><errorCode>2</errorCode>
<errorText>This transaction has been declined.</errorText></error></errors>
<userFields><userField><name>Tax</name><value>0</value></userField><userField><name>Freight</name><value>Fedex Home Delivery (Free Shipping)|0</value></userField><userField><name>IP Address</name><value>24.103.65.226</value></userField></userFields><transHashSha2 />
<profile><customerProfileId>XXXX</customerProfileId><customerPaymentProfileId>XXXX</customerPaymentProfileId></profile></transactionResponse></createTransactionResponse>

The response id showing the "Successful" but also the error text is returning as "This transaction has been declined."

We tried this same scenario with the sandbox account and it is working correctly with the Payment Profile ID.

Can you please look into this matter and provide us your feedback about it?


Thanks.
0 REPLIES 0