HppPostMessage
The shape of every window.postMessage the hosted page sends to its
parent/opener. Not an HTTP payload: this is what you receive in a
browser message event's event.data. See the integration guide
above for the full listener example. There are only two message
types; every way a checkout can end (finished, canceled, timed out,
or never loaded) is an outcome of result, not a separate type.
The shape of every
window.postMessagethe hosted page sends to its parent/opener. Not an HTTP payload: this is what you receive in a browsermessageevent'sevent.data. See the integration guide above for the full listener example. There are only two message types; every way a checkout can end (finished, canceled, timed out, or never loaded) is anoutcomeofresult, not a separate type.Sent on load and whenever the page's content height changes (loading → form → result, a validation error appearing, etc.). Wire it straight to the iframe's height.
- typeDiscriminatorconst:resizerequired
- sourceconst:kort-hosted-payment-pagerequired
- heightType: integer
The hosted page's current content height, in pixels.