Payments
...
Event based redirect
postMessage events
with postmessage functionality the iframe dispatches structured postmessage events to notify the parent application about user actions, lifecycle updates, and error states each event carries a specific meaning and allows the parent application to handle behavior gracefully within the same page flow event name when it fires possible action cr\ general error an unexpected system or network error occurs during card registration handle the error, display a generic failure state, and prevent further progress cr\ invalid token the iframe loads with an invalid or malformed authentication token re authenticate the user and restart the registration flow cr\ invalid domain the parent application domain fails authorization or whitelist validation block the flow and resolve domain authorization before retrying cr\ session expired the session token expires during an active registration flow refresh the session or prompt the user to restart the flow cr\ card registration submitted the user submits the registration form after client side validation succeeds show a loading or in progress state cr\ card registration error the registration request fails due to validation, processing, or provider errors display the error and allow correction or retry as appropriate cr\ card registration success the registration request completes successfully complete the flow and update the ui or redirect the user