postMessage to the parent window so the parent can hide the iframe, close a modal, or perform other actions.| Field | Type | Description |
|---|---|---|
type | string | Always 'MERCHANT_COLLECT_CLOSED'; use this to identify the close event |
source | string | Always 'merchant-collect'; identifies the sending page |
{
"type": "MERCHANT_COLLECT_CLOSED",
"source": "merchant-collect"
}window.parent !== window).window.parent with targetOrigin set to '*'.event.origin against an allowlist: