<?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 Customizing error messages in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Customizing-error-messages/m-p/71283#M43863</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use Acccept hosted form Payment profile in our site and have integrated into our iframe. I use the communicator that send resize window response. We are using it to just get the Payment information and not doing any transaction. When ever there is a error message like "Page expired or duplicate payment exists" we need the communicator to respond so that we can customize the error message to more user understandable texts or to redirect to the page we needed it to go. Is there a way to get the rsponse using the communicator? We cannot use "transactresponse" as we are not using that profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Schitti&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 18:54:45 GMT</pubDate>
    <dc:creator>schitti_123</dc:creator>
    <dc:date>2020-03-26T18:54:45Z</dc:date>
    <item>
      <title>Customizing error messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Customizing-error-messages/m-p/71283#M43863</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use Acccept hosted form Payment profile in our site and have integrated into our iframe. I use the communicator that send resize window response. We are using it to just get the Payment information and not doing any transaction. When ever there is a error message like "Page expired or duplicate payment exists" we need the communicator to respond so that we can customize the error message to more user understandable texts or to redirect to the page we needed it to go. Is there a way to get the rsponse using the communicator? We cannot use "transactresponse" as we are not using that profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Schitti&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 18:54:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Customizing-error-messages/m-p/71283#M43863</guid>
      <dc:creator>schitti_123</dc:creator>
      <dc:date>2020-03-26T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing error messages</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Customizing-error-messages/m-p/75632#M47181</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31919"&gt;@schitti_123&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way would be to parse the&amp;nbsp;message code from the API response.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="hljs-attr"&gt;"messages"&lt;/SPAN&gt;: {
    &lt;SPAN class="hljs-attr"&gt;"resultCode"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"Ok"&lt;/SPAN&gt;,
    &lt;SPAN class="hljs-attr"&gt;"message"&lt;/SPAN&gt;: [
      {
        &lt;SPAN class="hljs-attr"&gt;"code"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"I00001"&lt;/SPAN&gt;,
        &lt;SPAN class="hljs-attr"&gt;"text"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"Successful."&lt;/SPAN&gt;
      }&lt;/PRE&gt;&lt;P&gt;Depending on the message code, you could display your own appropriate message or redirect to the appropriate page for correcting the error.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 10:41:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Customizing-error-messages/m-p/75632#M47181</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2021-04-06T10:41:23Z</dc:date>
    </item>
  </channel>
</rss>

