@bigcommerce/checkout-sdk / IframeEventPoster
Name | Type |
---|---|
TEvent |
TEvent |
TContext |
undefined |
• new IframeEventPoster<TEvent
, TContext
>(targetOrigin
, _targetWindow?
, _context?
)
Name | Type |
---|---|
TEvent |
TEvent |
TContext |
undefined |
Name | Type |
---|---|
targetOrigin |
string |
_targetWindow? |
Window |
_context? |
TContext |
▸ post(event
): void
Name | Type |
---|---|
event |
TEvent |
void
▸ post<TSuccessEvent
, TErrorEvent
>(event
, options
): Promise
<TSuccessEvent
>
Name | Type |
---|---|
TSuccessEvent |
extends IframeEvent <string , any , TSuccessEvent >IframeEvent <string , any > |
TErrorEvent |
extends IframeEvent <string , any , TErrorEvent >IframeEvent <string , any > |
Name | Type |
---|---|
event |
TEvent |
options |
IframeEventPostOptions <TSuccessEvent , TErrorEvent > |
Promise
<TSuccessEvent
>
▸ setContext(context
): void
Name | Type |
---|---|
context |
TContext |
void
▸ setTarget(window
): void
Name | Type |
---|---|
window |
Window |
void