<?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 How to Handle Declined Transactions with Specific Response Codes? in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-Handle-Declined-Transactions-with-Specific-Response-Codes/m-p/90834#M1954</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hi Cybersource Community,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I’m integrating Cybersource’s payment gateway into my application, and I need help handling declined transactions based on specific response codes.&lt;/P&gt;&lt;P&gt;Currently, when a transaction is declined, the API returns a response with a code and message, but I’m unsure about the best practices for:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Differentiating between soft declines (e.g., insufficient funds) and hard declines (e.g., invalid card number).&lt;/LI&gt;&lt;LI&gt;Implementing retries for soft declines without violating compliance standards.&lt;/LI&gt;&lt;LI&gt;Displaying user-friendly error messages while keeping sensitive details secure.&lt;P&gt;Here’s a sample of my current implementation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;json&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{ &lt;SPAN class=""&gt;"responseCode"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"203"&lt;SPAN class=""&gt;, &lt;SPAN class=""&gt;"responseMessage"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"General decline of the card." &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Is there a definitive list of response codes categorized by soft vs. hard declines?&lt;/LI&gt;&lt;LI&gt;Are there recommended retry strategies for certain codes?&lt;/LI&gt;&lt;LI&gt;How can I customize error handling for different codes effectively?&lt;P&gt;Any guidance, code examples, or documentation references would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 26 Nov 2024 15:51:45 GMT</pubDate>
    <dc:creator>miasmith11</dc:creator>
    <dc:date>2024-11-26T15:51:45Z</dc:date>
    <item>
      <title>How to Handle Declined Transactions with Specific Response Codes?</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-Handle-Declined-Transactions-with-Specific-Response-Codes/m-p/90834#M1954</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hi Cybersource Community,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I’m integrating Cybersource’s payment gateway into my application, and I need help handling declined transactions based on specific response codes.&lt;/P&gt;&lt;P&gt;Currently, when a transaction is declined, the API returns a response with a code and message, but I’m unsure about the best practices for:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Differentiating between soft declines (e.g., insufficient funds) and hard declines (e.g., invalid card number).&lt;/LI&gt;&lt;LI&gt;Implementing retries for soft declines without violating compliance standards.&lt;/LI&gt;&lt;LI&gt;Displaying user-friendly error messages while keeping sensitive details secure.&lt;P&gt;Here’s a sample of my current implementation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;json&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{ &lt;SPAN class=""&gt;"responseCode"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"203"&lt;SPAN class=""&gt;, &lt;SPAN class=""&gt;"responseMessage"&lt;SPAN class=""&gt;: &lt;SPAN class=""&gt;"General decline of the card." &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Is there a definitive list of response codes categorized by soft vs. hard declines?&lt;/LI&gt;&lt;LI&gt;Are there recommended retry strategies for certain codes?&lt;/LI&gt;&lt;LI&gt;How can I customize error handling for different codes effectively?&lt;P&gt;Any guidance, code examples, or documentation references would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 26 Nov 2024 15:51:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-Handle-Declined-Transactions-with-Specific-Response-Codes/m-p/90834#M1954</guid>
      <dc:creator>miasmith11</dc:creator>
      <dc:date>2024-11-26T15:51:45Z</dc:date>
    </item>
  </channel>
</rss>

