* Posts a message to the iframe with the given data. * * @param {!Object} data
(data)
| 15478 | * @param {!Object} data |
| 15479 | */ |
| 15480 | static postMessage(data) { |
| 15481 | if (!iframeLoaded) { |
| 15482 | buffer.push(data); |
| 15483 | return; |
| 15484 | } |
| 15485 | const postMessageData = Object.assign( |
| 15486 | { |
| 15487 | 'buyFlowActivityMode': buyFlowActivityMode, |
| 15488 | 'googleTransactionId': googleTransactionId, |
| 15489 | 'originTimeMs': originTimeMs, |
| 15490 | }, |
| 15491 | data); |
| 15492 | postMessageService.postMessage( |
| 15493 | postMessageData, PayFrameHelper.getIframeOrigin_()); |
| 15494 | } |
| 15495 | |
| 15496 | /** |
| 15497 | * Sets the activity mode. |
no test coverage detected