<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using test card number and test decline zip results in approved transaction in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62970#M37183</link>
    <description>&lt;P&gt;This is exactly my problem as well.&amp;nbsp; I'm attempting to test the declined response but following the currently published guidance does not result in a decline response.&amp;nbsp; Has anyone found the combination of values to pass that actually elicits a decline to test with?&lt;/P&gt;</description>
    <pubDate>Sat, 05 May 2018 12:21:47 GMT</pubDate>
    <dc:creator>tahbaza</dc:creator>
    <dc:date>2018-05-05T12:21:47Z</dc:date>
    <item>
      <title>Using test card number and test decline zip results in approved transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62298#M36653</link>
      <description>&lt;P&gt;Hi. I know&amp;nbsp;something similar&amp;nbsp;has been asked on a number of occassions but I can't seem to find any issue with what I'm doing. I'm using a sandbox account in &lt;STRONG&gt;live mode.&amp;nbsp;&lt;/STRONG&gt;I'm using a test CC number: &lt;STRONG&gt;5424000000000015.&amp;nbsp;&lt;/STRONG&gt;I'm using a test zip code:&amp;nbsp;&lt;STRONG&gt;46282&lt;/STRONG&gt;. When running a transaction, I expect it to be declined but it is approved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's is the request to create the customer payment profile:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;3xr3TpK9VZ&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;xxxxxxxxxxxxxxxx&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;customerProfileId&amp;gt;1504041103&amp;lt;/customerProfileId&amp;gt;
	&amp;lt;paymentProfile&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;firstName&amp;gt;issue1346&amp;lt;/firstName&amp;gt;
			&amp;lt;lastName&amp;gt;Authnet Dupes&amp;lt;/lastName&amp;gt;
			&amp;lt;address&amp;gt;123 Fake St&amp;lt;/address&amp;gt;
			&amp;lt;zip&amp;gt;46282&amp;lt;/zip&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;payment&amp;gt;
			&amp;lt;creditCard&amp;gt;
				&amp;lt;cardNumber&amp;gt;542400xxxxxx0015&amp;lt;/cardNumber&amp;gt;
				&amp;lt;expirationDate&amp;gt;2022-06&amp;lt;/expirationDate&amp;gt;
			&amp;lt;/creditCard&amp;gt;
		&amp;lt;/payment&amp;gt;
	&amp;lt;/paymentProfile&amp;gt;
	&amp;lt;validationMode&amp;gt;none&amp;lt;/validationMode&amp;gt;
&amp;lt;/createCustomerPaymentProfileRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... that results in a successfully created profile...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createCustomerPaymentProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;messages&amp;gt;
        &amp;lt;resultCode&amp;gt;Ok&amp;lt;/resultCode&amp;gt;
        &amp;lt;message&amp;gt;
            &amp;lt;code&amp;gt;I00001&amp;lt;/code&amp;gt;
            &amp;lt;text&amp;gt;Successful.&amp;lt;/text&amp;gt;
        &amp;lt;/message&amp;gt;
    &amp;lt;/messages&amp;gt;
    &amp;lt;customerProfileId&amp;gt;1504041103&amp;lt;/customerProfileId&amp;gt;
    &amp;lt;customerPaymentProfileId&amp;gt;1503352673&amp;lt;/customerPaymentProfileId&amp;gt;
&amp;lt;/createCustomerPaymentProfileResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... then when I transact using that profile, the transaction is approved while I expect decline due to the test card and test zip. Here's the request and response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;merchantAuthentication&amp;gt;
        &amp;lt;name&amp;gt;3xr3TpK9VZ&amp;lt;/name&amp;gt;
        &amp;lt;transactionKey&amp;gt;xxxxxxxxxxxxxxxx&amp;lt;/transactionKey&amp;gt;
    &amp;lt;/merchantAuthentication&amp;gt;
    &amp;lt;transaction&amp;gt;
        &amp;lt;profileTransAuthCapture&amp;gt;
            &amp;lt;amount&amp;gt;249.00&amp;lt;/amount&amp;gt;
            &amp;lt;customerProfileId&amp;gt;1504041103&amp;lt;/customerProfileId&amp;gt;
            &amp;lt;customerPaymentProfileId&amp;gt;1503352673&amp;lt;/customerPaymentProfileId&amp;gt;
            &amp;lt;order&amp;gt;
                &amp;lt;invoiceNumber&amp;gt;1&amp;lt;/invoiceNumber&amp;gt;
                &amp;lt;description&amp;gt;7e2395eb-2ec7-11e8-b567-02613d0bd556&amp;lt;/description&amp;gt;
                &amp;lt;purchaseOrderNumber&amp;gt;7&amp;lt;/purchaseOrderNumber&amp;gt;
            &amp;lt;/order&amp;gt;
            &amp;lt;recurringBilling&amp;gt;true&amp;lt;/recurringBilling&amp;gt;
        &amp;lt;/profileTransAuthCapture&amp;gt;
    &amp;lt;/transaction&amp;gt;
    &amp;lt;extraOptions&amp;gt;
        &amp;lt;![CDATA[x_solution_id=AAA100304&amp;amp;x_duplicate_window=0&amp;amp;x_zip=46282&amp;amp;x_test_request=FALSE]]&amp;gt;
    &amp;lt;/extraOptions&amp;gt;
&amp;lt;/createCustomerProfileTransactionRequest&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createCustomerProfileTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;messages&amp;gt;
        &amp;lt;resultCode&amp;gt;Ok&amp;lt;/resultCode&amp;gt;
        &amp;lt;message&amp;gt;
            &amp;lt;code&amp;gt;I00001&amp;lt;/code&amp;gt;
            &amp;lt;text&amp;gt;Successful.&amp;lt;/text&amp;gt;
        &amp;lt;/message&amp;gt;
    &amp;lt;/messages&amp;gt;
    &amp;lt;directResponse&amp;gt;1,1,1,This transaction has been approved.,TNGAXS,Y,40011872606,1,7e2395eb-2ec7-11e8-b567-02613d0bd556,249.00,CC,auth_capture,issue1346,issue1346,Authnet Dupes,,123 Fake
        St,,,46282,,,,issue1346@example.com,,,,,,,,,,,,,7,F51CF5BE661CA435706C4BC46681D314,P,2,,,,,,,,,,,XXXX0015,MasterCard,,,,,,,,,,,,,,,,,&amp;lt;/directResponse&amp;gt;
&amp;lt;/createCustomerProfileTransactionResponse&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Mar 2018 19:00:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62298#M36653</guid>
      <dc:creator>marcguyer</dc:creator>
      <dc:date>2018-03-23T19:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using test card number and test decline zip results in approved transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62304#M36657</link>
      <description>&lt;P&gt;Since the use of the old &lt;EM&gt;createCustomerPaymentProfileRequest&lt;/EM&gt; is discouraged, I've refactored to start using &lt;EM&gt;createTransactionRequest&lt;/EM&gt; instead partly with the hope that the new functionality will honor the test values and result in the expected decline result. Not so. Here are the latest requests/responses to create the customer payment profile with test CC (5424000000000015) and test ZIP (46282) and the new &lt;EM&gt;createTransactionRequest&lt;/EM&gt; with response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;3xr3TpK9VZ&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;xxxxxxxxxxxxxxxx&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;customerProfileId&amp;gt;1504059751&amp;lt;/customerProfileId&amp;gt;
	&amp;lt;paymentProfile&amp;gt;
		&amp;lt;billTo&amp;gt;
			&amp;lt;firstName&amp;gt;issue1346&amp;lt;/firstName&amp;gt;
			&amp;lt;lastName&amp;gt;Authnet Dupes&amp;lt;/lastName&amp;gt;
			&amp;lt;address&amp;gt;123 Fake St&amp;lt;/address&amp;gt;
			&amp;lt;zip&amp;gt;46282&amp;lt;/zip&amp;gt;
		&amp;lt;/billTo&amp;gt;
		&amp;lt;payment&amp;gt;
			&amp;lt;creditCard&amp;gt;
				&amp;lt;cardNumber&amp;gt;542400xxxxxx0015&amp;lt;/cardNumber&amp;gt;
				&amp;lt;expirationDate&amp;gt;2022-06&amp;lt;/expirationDate&amp;gt;
			&amp;lt;/creditCard&amp;gt;
		&amp;lt;/payment&amp;gt;
	&amp;lt;/paymentProfile&amp;gt;
	&amp;lt;validationMode&amp;gt;none&amp;lt;/validationMode&amp;gt;
&amp;lt;/createCustomerPaymentProfileRequest&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createCustomerPaymentProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;messages&amp;gt;
		&amp;lt;resultCode&amp;gt;Ok&amp;lt;/resultCode&amp;gt;
		&amp;lt;message&amp;gt;
			&amp;lt;code&amp;gt;I00001&amp;lt;/code&amp;gt;
			&amp;lt;text&amp;gt;Successful.&amp;lt;/text&amp;gt;
		&amp;lt;/message&amp;gt;
	&amp;lt;/messages&amp;gt;
	&amp;lt;customerProfileId&amp;gt;1504059751&amp;lt;/customerProfileId&amp;gt;
	&amp;lt;customerPaymentProfileId&amp;gt;1503371415&amp;lt;/customerPaymentProfileId&amp;gt;
&amp;lt;/createCustomerPaymentProfileResponse&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;3xr3TpK9VZ&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;xxxxxxxxxxxxxxxx&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;transactionRequest&amp;gt;
		&amp;lt;transactionType&amp;gt;authCaptureTransaction&amp;lt;/transactionType&amp;gt;
		&amp;lt;amount&amp;gt;249.00&amp;lt;/amount&amp;gt;
		&amp;lt;profile&amp;gt;
			&amp;lt;customerProfileId&amp;gt;1504059751&amp;lt;/customerProfileId&amp;gt;
			&amp;lt;paymentProfile&amp;gt;
				&amp;lt;paymentProfileId&amp;gt;1503371415&amp;lt;/paymentProfileId&amp;gt;
			&amp;lt;/paymentProfile&amp;gt;
		&amp;lt;/profile&amp;gt;
		&amp;lt;solution&amp;gt;
			&amp;lt;id&amp;gt;AAA100304&amp;lt;/id&amp;gt;
		&amp;lt;/solution&amp;gt;
		&amp;lt;order&amp;gt;
			&amp;lt;invoiceNumber&amp;gt;1&amp;lt;/invoiceNumber&amp;gt;
			&amp;lt;description&amp;gt;d95444b6-2f88-11e8-b567-02613d0bd556&amp;lt;/description&amp;gt;
		&amp;lt;/order&amp;gt;
		&amp;lt;taxExempt&amp;gt;false&amp;lt;/taxExempt&amp;gt;
		&amp;lt;poNumber&amp;gt;7&amp;lt;/poNumber&amp;gt;
		&amp;lt;customerIP&amp;gt;&amp;lt;/customerIP&amp;gt;
		&amp;lt;transactionSettings&amp;gt;
			&amp;lt;setting&amp;gt;
				&amp;lt;settingName&amp;gt;recurringBilling&amp;lt;/settingName&amp;gt;
				&amp;lt;settingValue&amp;gt;true&amp;lt;/settingValue&amp;gt;
			&amp;lt;/setting&amp;gt;
			&amp;lt;setting&amp;gt;
				&amp;lt;settingName&amp;gt;duplicateWindow&amp;lt;/settingName&amp;gt;
				&amp;lt;settingValue&amp;gt;0&amp;lt;/settingValue&amp;gt;
			&amp;lt;/setting&amp;gt;
		&amp;lt;/transactionSettings&amp;gt;
	&amp;lt;/transactionRequest&amp;gt;
&amp;lt;/createTransactionRequest&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;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"&amp;gt;
	&amp;lt;messages&amp;gt;
		&amp;lt;resultCode&amp;gt;Ok&amp;lt;/resultCode&amp;gt;
		&amp;lt;message&amp;gt;
			&amp;lt;code&amp;gt;I00001&amp;lt;/code&amp;gt;
			&amp;lt;text&amp;gt;Successful.&amp;lt;/text&amp;gt;
		&amp;lt;/message&amp;gt;
	&amp;lt;/messages&amp;gt;
	&amp;lt;transactionResponse&amp;gt;
		&amp;lt;responseCode&amp;gt;1&amp;lt;/responseCode&amp;gt;
		&amp;lt;authCode&amp;gt;OAKCJW&amp;lt;/authCode&amp;gt;
		&amp;lt;avsResultCode&amp;gt;Y&amp;lt;/avsResultCode&amp;gt;
		&amp;lt;cvvResultCode&amp;gt;P&amp;lt;/cvvResultCode&amp;gt;
		&amp;lt;cavvResultCode&amp;gt;2&amp;lt;/cavvResultCode&amp;gt;
		&amp;lt;transId&amp;gt;40011915080&amp;lt;/transId&amp;gt;&amp;lt;refTransID/&amp;gt;
		&amp;lt;transHash&amp;gt;5C8E07DDB7F875B58000FEB8745FE38D&amp;lt;/transHash&amp;gt;
		&amp;lt;testRequest&amp;gt;0&amp;lt;/testRequest&amp;gt;
		&amp;lt;accountNumber&amp;gt;XXXX0015&amp;lt;/accountNumber&amp;gt;
		&amp;lt;accountType&amp;gt;MasterCard&amp;lt;/accountType&amp;gt;
		&amp;lt;messages&amp;gt;
			&amp;lt;message&amp;gt;
				&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;
				&amp;lt;description&amp;gt;This transaction has been approved.&amp;lt;/description&amp;gt;
			&amp;lt;/message&amp;gt;
		&amp;lt;/messages&amp;gt;
		&amp;lt;transHashSha2/&amp;gt;
		&amp;lt;profile&amp;gt;
			&amp;lt;customerProfileId&amp;gt;1504059751&amp;lt;/customerProfileId&amp;gt;
			&amp;lt;customerPaymentProfileId&amp;gt;1503371415&amp;lt;/customerPaymentProfileId&amp;gt;
		&amp;lt;/profile&amp;gt;
	&amp;lt;/transactionResponse&amp;gt;
&amp;lt;/createTransactionResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Again, note that a test CC is being used with a test ZIP that should result in a decline (expected behavior) but it result is approved (actual behavior).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Mar 2018 17:41:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62304#M36657</guid>
      <dc:creator>marcguyer</dc:creator>
      <dc:date>2018-03-24T17:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using test card number and test decline zip results in approved transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62970#M37183</link>
      <description>&lt;P&gt;This is exactly my problem as well.&amp;nbsp; I'm attempting to test the declined response but following the currently published guidance does not result in a decline response.&amp;nbsp; Has anyone found the combination of values to pass that actually elicits a decline to test with?&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 12:21:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62970#M37183</guid>
      <dc:creator>tahbaza</dc:creator>
      <dc:date>2018-05-05T12:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using test card number and test decline zip results in approved transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62978#M37191</link>
      <description>&lt;P&gt;After countless hours of trial and error, I found that the usage of the &lt;EM&gt;recurringBilling&lt;/EM&gt; flag:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;transactionSettings&amp;gt;&lt;BR /&gt; &amp;lt;setting&amp;gt;&lt;BR /&gt; &amp;lt;settingName&amp;gt;recurringBilling&amp;lt;/settingName&amp;gt;&lt;BR /&gt; &amp;lt;settingValue&amp;gt;true&amp;lt;/settingValue&amp;gt;&lt;BR /&gt; &amp;lt;/setting&amp;gt;&lt;BR /&gt;&amp;lt;/transactionSettings&amp;gt;&lt;/PRE&gt;&lt;P&gt;... precludes the&amp;nbsp;use of error/decline simulation. In other words, using a test card and zip code in sandbox&amp;nbsp;&lt;STRONG&gt;does not work&lt;/STRONG&gt; if you set the &lt;EM&gt;recurringBilling&lt;/EM&gt; flag. Fortunately, that flag is essentially useless in development so the workaround is likely viable long-term.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 12:33:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-test-card-number-and-test-decline-zip-results-in-approved/m-p/62978#M37191</guid>
      <dc:creator>marcguyer</dc:creator>
      <dc:date>2018-05-07T12:33:57Z</dc:date>
    </item>
  </channel>
</rss>

