Skip to content

Commit

Permalink
comments and change link to IFrameCommunicator.html
Browse files Browse the repository at this point in the history
  • Loading branch information
adavidw committed Aug 19, 2017
1 parent 5ae8367 commit f3ae7bb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions IFrameCommunicator.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IFrame Communicator</title>

<!--
To securely communicate between our Accept Hosted form and your web page,
we need a communicator page which will be hosted on your site alongside
your checkout/payment page. You can provide the URL of the communicator
page in your token request, which will allow Authorize.Net to embed the
communicator page in the payment form, and send JavaScript messaging through
your communicator page to a listener script on your main page.
This page contains a JavaScript that listens for events from the payment
form and passes them to an event listener in the main page.
-->


<script type="text/javascript">

function callParentFunction(str) {
Expand Down
2 changes: 1 addition & 1 deletion README-AcceptHosted.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ In this step we will demonstrate how to resize your container iframe based on re

To securely communicate between our Accept Hosted form and your web page, we need a communicator page which will be hosted on your site alongside your checkout/payment page. You can provide the URL of the communicator page in your token request, which will allow Authorize.Net to embed the communicator page in the payment form, and send JavaScript messaging through your communicator page to a listener script on your main page.

For example, in this sample application, see the sample communicator page, [IFrameCommunicator.html](iCommunicator.html). You can use this same communicator page in your application.
For example, in this sample application, see the sample communicator page, [IFrameCommunicator.html](IFrameCommunicator.html). You can use this same communicator page in your application.

Pass the URL of your communicator page when you request a token (Step 1 above). For example:

Expand Down

0 comments on commit f3ae7bb

Please sign in to comment.