[**@bigcommerce/checkout-sdk**](../README.md)

***

[@bigcommerce/checkout-sdk](../README.md) / WorldpayAccessPaymentInitializeOptions

# Interface: WorldpayAccessPaymentInitializeOptions

## Methods

### onLoad()

> **onLoad**(`iframe`, `cancel`): `void`

A callback that gets called when the iframe is ready to be added to the
current page. It is responsible for determining where the iframe should
be inserted in the DOM.

#### Parameters

##### iframe

`HTMLIFrameElement`

The iframe element containing the payment web page
provided by the strategy.

##### cancel

() => `void`

A function, when called, will cancel the payment
process and remove the iframe.

#### Returns

`void`
