third_party/gpay/src/pay_frame_helper.js
/**
   * Posts a message to the iframe with the given data.
   *
   * @param {!Object} data
   */
Posts a message to the iframe with the given data.
@param {!Object} data
Posts a message to the iframe with the given data . @param { !Object } data
static postMessage(data) {
    if (!iframeLoaded) {
      buffer.push(data);
      return;
    }
    const postMessageData = Object.assign(
        {
          'buyFlowActivityMode': buyFlowActivityMode,
          'googleTransactionId': googleTransactionId,
          'originTimeMs': originTimeMs,
        },
        data);
    postMessageService.postMessage(
        postMessageData, PayFrameHelper.getIframeOrigin_());
  }
static postMessage ( data ) { if ( ! iframeLoaded ) { buffer . push ( data ) ; return ; } const postMessageData = Object . assign ( { 'buyFlowActivityMode' : buyFlowActivityMode , 'googleTransactionId' : googleTransactionId , 'originTimeMs' : originTimeMs , } , data ) ; postMessageService . postMessage ( postMessageData , PayFrameHelper . getIframeOrigin_ ( ) ) ; }
Posts a message to the iframe with the given data.
Posts a message to the iframe with the given data .