Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 12, 2021
1 parent 5693c3c commit 1611f0a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Expand Up @@ -16,6 +16,7 @@
- [WordPress Filters](#wordpress-filters)
- [Errors](#errors)
- [Simulate Requests](#simulate-requests)
- [Webhook](#webhook)
- [License](#license)

## Status
Expand Down Expand Up @@ -128,5 +129,20 @@ curl --request GET https://betalen.rabobank.nl/omnikassa-api/order/server/api/ev
--verbose
```

## Webhook

The Pronamic Pay OmniKassa 2.0 gateway can handle OmniKassa 2.0 notifications via the WordPress REST API.

**Route:** `/wp-json/pronamic-pay/omnikassa-2/v1/webhook`

The WordPress REST API OmniKassa 2.0 webhook can be tested with for example cURL, see for an example the [Simulate Requests](#simulate-requests) section.

In principle it is not possible to view this REST API endpoint via your web browser because it is a HTTP `POST` method only endpoint.
However, the WordPress REST API has the option to override the HTTP method via the `_method` parameter.

`/wp-json/pronamic-pay/omnikassa-2/v1/webhook?_method=POST`

https://developer.wordpress.org/rest-api/using-the-rest-api/global-parameters/#_method-or-x-http-method-override-header

## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwp-pay-gateways%2Fomnikassa-2.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fwp-pay-gateways%2Fomnikassa-2?ref=badge_large)

0 comments on commit 1611f0a

Please sign in to comment.