<?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 Flex Microform Field Load in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Flex-Microform-Field-Load/m-p/88699#M1380</link>
    <description>&lt;P&gt;I have the following code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const microform = new Flex(this.captureContext).microform({ styles: this.myStyles })
const securityCodeField = this.microform?.createField('securityCode', { placeholder: '•••' })
securityCodeField?.load('#securityCode-container')&lt;/LI-CODE&gt;&lt;P&gt;When the load function is call I have error in my console&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="microform field load error.png" style="width: 999px;"&gt;&lt;img src="https://community.developer.cybersource.com/t5/image/serverpage/image-id/2498i7E07DAE68DF86765/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="microform field load error.png" alt="microform field load error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried getting the error like so :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;securityCodeField.on('error', (e) =&amp;gt; { console.error(e) });&lt;/LI-CODE&gt;&lt;P&gt;but nothing ever get outputted to the console.&lt;/P&gt;&lt;P&gt;This happens because the load event only gets fired after the "15 minutes period" of the Capture Context created by the server side.&lt;/P&gt;&lt;P&gt;Why is this not catch in the On Error handler ?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 17:22:53 GMT</pubDate>
    <dc:creator>FrancisGroleau</dc:creator>
    <dc:date>2024-01-26T17:22:53Z</dc:date>
    <item>
      <title>Flex Microform Field Load</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Flex-Microform-Field-Load/m-p/88699#M1380</link>
      <description>&lt;P&gt;I have the following code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const microform = new Flex(this.captureContext).microform({ styles: this.myStyles })
const securityCodeField = this.microform?.createField('securityCode', { placeholder: '•••' })
securityCodeField?.load('#securityCode-container')&lt;/LI-CODE&gt;&lt;P&gt;When the load function is call I have error in my console&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="microform field load error.png" style="width: 999px;"&gt;&lt;img src="https://community.developer.cybersource.com/t5/image/serverpage/image-id/2498i7E07DAE68DF86765/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="microform field load error.png" alt="microform field load error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried getting the error like so :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;securityCodeField.on('error', (e) =&amp;gt; { console.error(e) });&lt;/LI-CODE&gt;&lt;P&gt;but nothing ever get outputted to the console.&lt;/P&gt;&lt;P&gt;This happens because the load event only gets fired after the "15 minutes period" of the Capture Context created by the server side.&lt;/P&gt;&lt;P&gt;Why is this not catch in the On Error handler ?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:22:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/Flex-Microform-Field-Load/m-p/88699#M1380</guid>
      <dc:creator>FrancisGroleau</dc:creator>
      <dc:date>2024-01-26T17:22:53Z</dc:date>
    </item>
  </channel>
</rss>

