cancel
Showing results for 
Search instead for 
Did you mean: 

This transaction has been declined. Code: 251

Hello there,

I am new to Authorize.net. I just setup Woocommerce CIM on my clients site and run a test transection and I got this error. I provived all my data and card numver correctly and I belive My CEO also filled the API Login ID, API Transaction Key and API Signature Key correctly.

Here is the screenshot of the setting I am using:

https://imgur.com/a/poYmJdq

 

PS: My site doesn't have SSL now and its still running on IP address.

 

How can I solve this issue?

 

DEBUG CODE:

 

Status code 3 (E00027): This transaction has been declined. Code: 251 - This transaction has been declined. Transaction ID 40726691999
An error occurred, please try again or try an alternate form of payment.
Request
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-CIM-Gateway/2.10.0 (WooCommerce/3.3.5; WordPress/4.9.6)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<getCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>***********</name>
<transactionKey>****************</transactionKey>
</merchantAuthentication>
<customerProfileId>1545374585</customerProfileId>
</getCustomerProfileRequest>
duration: 0.66512s
Response
code: 200
message: OK
headers: Array
(
[cache-control] => private
[content-type] => application/xml; charset=utf-8
[access-control-allow-origin] => *
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-credentials] => true
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[x-cnection] => close
[content-length] => 1119
[date] => Fri, 25 May 2018 22:30:16 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<getCustomerProfileResponse>
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<profile>
<merchantCustomerId>2</merchantCustomerId>
<email>me@adnanmahmud.com</email>
<customerProfileId>1545374585</customerProfileId>
<paymentProfiles>
<billTo>
<firstName>Adnan</firstName>
<lastName>Mahmud</lastName>
<address>1211 Delaburn</address>
<city>Chino</city>
<state>CA</state>
<zip>97820</zip>
<country>USA</country>
<phoneNumber>+1 (XXX) XXX-XXXX</phoneNumber>
</billTo>
<customerPaymentProfileId>1549183415</customerPaymentProfileId>
<payment>
<creditCard>
<cardNumber>XXXX0126</cardNumber>
<expirationDate>XXXX</expirationDate>
<cardType>Visa</cardType>
</creditCard>
</payment>
</paymentProfiles>
<shipToList>
<firstName>Adnan</firstName>
<lastName>Mahmud</lastName>
<customerAddressId>1554160629</customerAddressId>
</shipToList>
<profileType>regular</profileType>
</profile>
</getCustomerProfileResponse>
Request
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-CIM-Gateway/2.10.0 (WooCommerce/3.3.5; WordPress/4.9.6)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<getCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>***********</name>
<transactionKey>****************</transactionKey>
</merchantAuthentication>
<customerProfileId>1545374585</customerProfileId>
<customerPaymentProfileId>1549183415</customerPaymentProfileId>
</getCustomerPaymentProfileRequest>
duration: 0.38358s
Response
code: 200
message: OK
headers: Array
(
[cache-control] => private
[content-type] => application/xml; charset=utf-8
[access-control-allow-origin] => *
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-credentials] => true
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[x-cnection] => close
[content-length] => 874
[date] => Fri, 25 May 2018 22:30:16 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<getCustomerPaymentProfileResponse>
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<paymentProfile>
<billTo>
<firstName>Adnan</firstName>
<lastName>Mahmud</lastName>
<address>1211 Delaburn</address>
<city>Chino</city>
<state>CA</state>
<zip>97820</zip>
<country>USA</country>
<phoneNumber>+1 (412) 423-6264</phoneNumber>
</billTo>
<customerProfileId>1545374585</customerProfileId>
<customerPaymentProfileId>1549183415</customerPaymentProfileId>
<payment>
<creditCard>
<cardNumber>XXXX0126</cardNumber>
<expirationDate>XXXX</expirationDate>
<cardType>Visa</cardType>
</creditCard>
</payment>
</paymentProfile>
</getCustomerPaymentProfileResponse>
Request
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-CIM-Gateway/2.10.0 (WooCommerce/3.3.5; WordPress/4.9.6)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<updateCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>***********</name>
<transactionKey>****************</transactionKey>
</merchantAuthentication>
<refId>3430</refId>
<customerProfileId>1545374585</customerProfileId>
<paymentProfile>
<billTo>
<firstName>Adnan</firstName>
<lastName>Mahmud</lastName>
<address>1211 Delaburn</address>
<city>Chino</city>
<state>CA</state>
<zip>97820</zip>
<country>USA</country>
<phoneNumber>+1 (412) 423-6264</phoneNumber>
</billTo>
<payment>
<creditCard>
<cardNumber>XXXXYYYY</cardNumber>
<expirationDate>XXXX</expirationDate>
</creditCard>
</payment>
<customerPaymentProfileId>1549183415</customerPaymentProfileId>
</paymentProfile>
<validationMode>none</validationMode>
</updateCustomerPaymentProfileRequest>
duration: 0.74692s
Response
code: 200
message: OK
headers: Array
(
[cache-control] => private
[content-type] => application/xml; charset=utf-8
[access-control-allow-origin] => *
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-credentials] => true
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[x-cnection] => close
[content-length] => 394
[date] => Fri, 25 May 2018 22:30:17 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<updateCustomerPaymentProfileResponse>
<refId>3430</refId>
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
</updateCustomerPaymentProfileResponse>
Request
method: POST
uri: https://api2.authorize.net/xml/v1/request.api
user-agent: WooCommerce-Authorize.Net-CIM-Gateway/2.10.0 (WooCommerce/3.3.5; WordPress/4.9.6)
headers: Array
(
[content-type] => application/xml
[accept] => application/xml
)
body: <?xml version="1.0" encoding="UTF-8"?>
<createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>***********</name>
<transactionKey>****************</transactionKey>
</merchantAuthentication>
<refId>3430</refId>
<transaction>
<profileTransAuthCapture>
<amount>0.99</amount>
<lineItems>
<itemId>9</itemId>
<name>$1 NAKED 100 ICE - Hawaiian ...</name>
<description>SKU: TEST0001, Nicotine Level: 12-mg</description>
<quantity>1</quantity>
<unitPrice>0.99</unitPrice>
</lineItems>
<customerProfileId>1545374585</customerProfileId>
<customerPaymentProfileId>1549183415</customerPaymentProfileId>
<customerShippingAddressId>1554160629</customerShippingAddressId>
<order>
<invoiceNumber>3430</invoiceNumber>
<description>Vapor SOLO - Order 3430</description>
</order>
<cardCode>***</cardCode>
</profileTransAuthCapture>
</transaction>
<extraOptions>x_solution_id=A1000065&amp;x_customer_ip=113.210.230.197&amp;x_currency_code=USD&amp;x_duplicate_window=0&amp;x_delim_char=%7C&amp;x_encap_char=%3A</extraOptions>
</createCustomerProfileTransactionRequest>
duration: 1.67972s
Response
code: 200
message: OK
headers: Array
(
[cache-control] => private
[content-type] => application/xml; charset=utf-8
[access-control-allow-origin] => *
[access-control-allow-headers] => x-requested-with,cache-control,content-type,origin,method,SOAPAction
[access-control-allow-credentials] => true
[access-control-allow-methods] => PUT,OPTIONS,POST,GET
[x-cnection] => close
[content-length] => 908
[date] => Fri, 25 May 2018 22:30:19 GMT
)
body: <?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileTransactionResponse>
<refId>3430</refId>
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00027</code>
<text>This transaction has been declined.</text>
</message>
</messages>
<directResponse>:3:|:1:|:251:|:This transaction has been declined.:|::|:P:|:40726691999:|:3430:|:Vapor SOLO - Order 3430:|:0.99:|:CC:|:auth_capture:|:2:|:Adnan:|:Mahmud:|::|:1211 Delaburn:|:Chino:|:CA:|:97820:|:USA:|:+1 (412) 423-6264:|::|:me@adnanmahmud.com:|:Adnan:|:Mahmud:|::|::|::|::|::|::|::|::|::|::|::|:C890E04DFB99F9D435B53C39AB314EED:|::|::|::|::|::|::|::|::|::|::|::|::|:XXXX0126:|:Visa:|::|::|::|::|::|::|::|::|::|::|::|::|::|::|::|::|:1554160629:|::</directResponse>
</createCustomerProfileTransactionResponse>

P.S: I've changes some of the code to XXXX and YYYY for security resasn.

Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.
adnanmahmud
Member
1 REPLY 1

If you have access to the merchant interface at www.authorize.net then check for the transaction in the Fraud Detection Suite. If you do not have access have your client check if they are happy with the settings. If they are, then this is a normal response when fraud filters are applied.

 

https://developer.authorize.net/api/reference/responseCodes.html

mmcguire
Administrator Administrator
Administrator