(event)
| 15438 | static sendAndWaitForResponse( |
| 15439 | data, eventType, responseType, responseHandler) { |
| 15440 | function callback(event) { |
| 15441 | if (event.data[responseType]) { |
| 15442 | responseHandler(event); |
| 15443 | // We only want to process the response from the payframe once. |
| 15444 | // so stop listening to the event once processed. |
| 15445 | PayFrameHelper.removeMessageEventListener_(callback); |
| 15446 | } |
| 15447 | } |
| 15448 | |
| 15449 | PayFrameHelper.addMessageEventListener_(callback); |
| 15450 |
no test coverage detected