Skip to content

Commit

Permalink
Update hooks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 3, 2024
1 parent 68970bf commit 6671e02
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions docs/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,10 @@ Argument | Type | Description
-------- | ---- | -----------
`$payment` | `\Pronamic\WordPress\Pay\Payments\Payment` | Payment to log.

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

## Filters

### `pronamic_pay_omnikassa_2_merchant_return_url`

*Filters the OmniKassa 2.0 merchant return URL.*

OmniKassa 2 requires for each order announcement a merchant return URL.
OmniKassa 2 does not allow all merchant return URL's. An order
announcement with a merchant return URL's with the TLD `.test` will
for example result in the following error:

> merchantReturnURL is not a valid web address
This can be very inconvenient for testing OmniKassa 2, therefor we
introduced this filter.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$merchant_return_url` | `string` | Merchant return URL.

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

### `pronamic_pay_omnikassa_2_request_args`

*Filters the OmniKassa 2.0 remote request arguments.*
Expand All @@ -62,8 +40,8 @@ Argument | Type | Description
-------- | ---- | -----------
`$args` | `array` | WordPress remote request arguments.

Source: [src/Client.php](../src/Client.php), [line 170](../src/Client.php#L170-L183)
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.1.0</code></em><p>
<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>

0 comments on commit 6671e02

Please sign in to comment.