# Interface: EmbedEventCallbacks

Defined in: [embeds/types.ts:38](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L38)

## Properties

### onCancel?

> `optional` **onCancel?**: (`data`) => `void`

Defined in: [embeds/types.ts:45](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L45)

#### Parameters

##### data

`any`

#### Returns

`void`

***

### onClosed?

> `optional` **onClosed?**: (`data`) => `void`

Defined in: [embeds/types.ts:46](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L46)

#### Parameters

##### data

`any`

#### Returns

`void`

***

### onComplete?

> `optional` **onComplete?**: (`checkout`) => `void`

Defined in: [embeds/types.ts:44](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L44)

#### Parameters

##### checkout

`any`

#### Returns

`void`

***

### onError?

> `optional` **onError?**: (`error`) => `void`

Defined in: [embeds/types.ts:49](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L49)

#### Parameters

##### error

`any`

#### Returns

`void`

***

### onInit?

> `optional` **onInit?**: (`checkoutId`) => `void`

Defined in: [embeds/types.ts:39](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L39)

#### Parameters

##### checkoutId

`string`

#### Returns

`void`

***

### onLineItemChange?

> `optional` **onLineItemChange?**: (`data`) => `void`

Defined in: [embeds/types.ts:47](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L47)

#### Parameters

##### data

`any`

#### Returns

`void`

***

### onPageChange?

> `optional` **onPageChange?**: (`checkoutId`, `pageId`) => `void`

Defined in: [embeds/types.ts:40](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L40)

#### Parameters

##### checkoutId

`string`

##### pageId

`string`

#### Returns

`void`

***

### onPaymentInit?

> `optional` **onPaymentInit?**: (`checkoutId`) => `void`

Defined in: [embeds/types.ts:41](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L41)

#### Parameters

##### checkoutId

`string`

#### Returns

`void`

***

### onResize?

> `optional` **onResize?**: (`data`) => `void`

Defined in: [embeds/types.ts:48](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L48)

#### Parameters

##### data

`any`

#### Returns

`void`

***

### onSubmit?

> `optional` **onSubmit?**: (`checkoutId`) => `void`

Defined in: [embeds/types.ts:42](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L42)

#### Parameters

##### checkoutId

`string`

#### Returns

`void`

***

### onSuccess?

> `optional` **onSuccess?**: (`data`) => `void`

Defined in: [embeds/types.ts:43](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/react/src/embeds/types.ts#L43)

#### Parameters

##### data

`any`

#### Returns

`void`

Source: https://plandalf.com/docs/packages/react/interfaces/EmbedEventCallbacks
