# initializeOrder:after

> Runs once the virtual order page is in the session and the payment has been started.

- Source: `config/hooks.php#L95` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/config/hooks.php#L95>

```php
'wagnerwagner.merx.initializeOrder:after' => function (Wagnerwagner\Merx\OrderPage $virtualOrderPage, string $redirect): void {}
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$virtualOrderPage` | `Wagnerwagner\Merx\OrderPage` | `–` |
| `$redirect` | `string` | `–` |

## Return type

`void`
