<?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: DPM via AJAX? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/67552#M40936</link>
    <description>&lt;P&gt;that you could hide the request in an iframe to avoid those issues.&lt;/P&gt;&lt;P&gt;I'm ashamed to recommend IFrames as a solution to anything. Remember, they don't always play nicely with older mobile browsers.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2019 11:09:33 GMT</pubDate>
    <dc:creator>Snyder5</dc:creator>
    <dc:date>2019-04-29T11:09:33Z</dc:date>
    <item>
      <title>DPM via AJAX?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/26832#M14229</link>
      <description>&lt;P&gt;I couldn't quite find a definitive answer for this. I'd like to make my checkout process more intuitive, and I'd like to use the DPM method to avoid having my server touch cardholder data. In particular I want to make sure if a transaction is rejected that the user doesn't have to re-enter all their cardholder data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The most straightforward way I'm aware of is to post the form to the DPM processor using an AJAX request instead of redirecting the browser. When the DPM api notified my site of the results it would be trivial to reply with either a redirect URL or an error message that would be sent back to the AJAX initiator. By handling it this way the user would never leave the page they were on and therefore the form would remain populated without me having to handle that secure data in any way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried searching for information about DPM and AJAX to see if this was a common implementation, but didn't see any. Before I go rewriting my processing system, am I missing any obvious security flaws in my reasoning, or is there any other reason (technical or a.net policy) not to do this?&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 19:50:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/26832#M14229</guid>
      <dc:creator>DanL</dc:creator>
      <dc:date>2012-05-30T19:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: DPM via AJAX?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/26838#M14231</link>
      <description>&lt;P&gt;After stepping away from my computer for a few I realized that the above would violate the same-origin policy and not work in most browsers&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 22:45:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/26838#M14231</guid>
      <dc:creator>DanL</dc:creator>
      <dc:date>2012-05-30T22:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: DPM via AJAX?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/26844#M14234</link>
      <description>&lt;P&gt;Didn't have time to try it out but I think It could work if you do the posting on javascript, read the response with it, probably set x_relay_response = FALSE and x_delim_data = TRUE, so it will be a mix of DPM and AIM.&lt;/P&gt;&lt;P&gt;Just make sure NOT to pass the TransactionKEY as in AIM(NEVER ever pass that anywhere), but pass the x_fp_hash like in DPM.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 23:40:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/26844#M14234</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-05-30T23:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: DPM via AJAX?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/35134#M19534</link>
      <description>&lt;P&gt;&lt;SPAN&gt;What about using JQuery to send an AJAX request with &lt;STRONG&gt;crossDomain: True&lt;/STRONG&gt;. &amp;nbsp;Also. &lt;STRONG&gt;$.Support.cors = true; ?&amp;nbsp;&lt;/STRONG&gt;Has anyone tried this with DPM? If so, what was your Data &amp;nbsp;tag set to in the JQuery?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:00:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/35134#M19534</guid>
      <dc:creator>evoDev</dc:creator>
      <dc:date>2013-07-31T17:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: DPM via AJAX?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/35148#M19547</link>
      <description>&lt;P&gt;Authorize.net will redirect as per the relay response page. So while you can't parse the results using an AJAX post, you can probably use an invisible iframe and do something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Copy to hidden form fields in the page in the iframe.&lt;/P&gt;&lt;P&gt;2) Submit it to Authorize.net&lt;/P&gt;&lt;P&gt;3) Authorize.net forwards to the appropriate error or receipt page&lt;/P&gt;&lt;P&gt;4) That page (which is now back on your site and therefore can probably communicate) calls a function on the parent page and passes success or an error message&lt;/P&gt;&lt;P&gt;5) If success, forward; if error, display the error and reactivate submit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone see a way this wouldn't work?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2013 01:47:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/35148#M19547</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2013-08-03T01:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: DPM via AJAX?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/67477#M40878</link>
      <description>&lt;P&gt;$.ajax({&lt;BR /&gt;type: "POST",&lt;BR /&gt;crossDomain: true,&lt;BR /&gt;url: '&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;',&lt;BR /&gt;dataType: "json",&lt;BR /&gt;data: createCustomerProfileRequest,&lt;BR /&gt;success: function (response) {&lt;/P&gt;&lt;P&gt;if (response.dataValue == "Error") {&lt;BR /&gt;toastr.warning(response.dataDescriptor);&lt;BR /&gt;} else {&lt;BR /&gt;toastr.success('Successfully sumitted payment!');&lt;BR /&gt;}&lt;BR /&gt;$("#ccButton").attr("disabled", false);&lt;BR /&gt;},&lt;BR /&gt;error: function (error) {&lt;BR /&gt;toastr.error('Could NOT submit payment!');&lt;BR /&gt;$("#ccButton").attr("disabled", false);&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is my AJAX POST but it doesn't work.&amp;nbsp; I still get the same error even though i've verified my JSON is correct and can send the same payload via Advanced Rest Client without failure.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 17:51:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/67477#M40878</guid>
      <dc:creator>crodgers123</dc:creator>
      <dc:date>2019-04-22T17:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: DPM via AJAX?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/67552#M40936</link>
      <description>&lt;P&gt;that you could hide the request in an iframe to avoid those issues.&lt;/P&gt;&lt;P&gt;I'm ashamed to recommend IFrames as a solution to anything. Remember, they don't always play nicely with older mobile browsers.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 11:09:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-via-AJAX/m-p/67552#M40936</guid>
      <dc:creator>Snyder5</dc:creator>
      <dc:date>2019-04-29T11:09:33Z</dc:date>
    </item>
  </channel>
</rss>

