Using the iFrame
After you have completed the steps above and rendered the iFrame, all communication between your site and the iFrame occurs using postMessage. The iFrame will send a JSON object to the parent window with events containing information regarding the state of the iFrame, and the parent window interacts with the iFrame via functions.