# Hooks

- [Actions](#actions)
- [Filters](#filters)

## Actions

### `pronamic_pay_webhook_log_payment`

*Webhook log payment.*

The `pronamic_pay_webhook_log_payment` action is triggered so the
`wp-pay/core` library can hook into this and register the webhook
call.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$payment` | `\Pronamic\WordPress\Pay\Payments\Payment` | Payment to log.

Source: [src/Gateway.php](../src/Gateway.php), [line 513](../src/Gateway.php#L513-L522)

## Filters

### `pronamic_pay_omnikassa_2_request_args`

*Filters the OmniKassa 2.0 remote request arguments.*

Developers who want to adjust the WordPress remote request arguments
towards the OmniKassa servers can use this filter. For example, it
can be used to increase the HTTP timeout to, for example, 3600. This
is sometimes useful for testing AfterPay payments for example.
Mainly because the OmniKassa servers sometimes respond slowly when
starting AfterPay payments.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$args` | `array` | WordPress remote request arguments.

Source: [src/Client.php](../src/Client.php), [line 96](../src/Client.php#L96-L109)


<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.2.0</code></em><p>

