Skip to content
OmniKassa 2.0 driver for the WordPress payment processing library.
PHP JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
documentation
json-schemas
src
tests
.gitattributes
.gitignore
.scrutinizer.yml
.travis.yml
CHANGELOG.md
Gruntfile.js
README.md
composer.json
package.json
phpcs.xml.dist
phpmd.ruleset.xml
phpstan.neon.dist
phpunit.xml.dist
psalm.xml.dist

README.md

WordPress Pay Gateway: OmniKassa 2.0

OmniKassa 2.0 driver for the WordPress payment processing library.

GitHub Stars Build Status Coverage Status Latest Stable Version PHP from Packagist Total Downloads Packagist Pre Release License Built with Grunt Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status Maintainability Test Coverage CircleCI FOSSA Status

WordPress Filters

pronamic_pay_omnikassa_2_request_args

add_filter( 'pronamic_pay_omnikassa_2_request_args', function( $args ) {
	$args['timeout'] = 3600;

	return $args;
} );

pronamic_pay_omnikassa_2_merchant_return_url

add_filter( 'pronamic_pay_omnikassa_2_merchant_return_url', function( $url ) {
	$url = 'https://example.com/';

	return $url;
} );

Links

Documentation

Errors

Request Response Status Code Code Propery Message
gatekeeper/refresh HTTP/1.1 401 Unauthorized 5001 errorMessage Full authentication is required to access this resource
order/server/api/order HTTP/1.1 403 Forbidden 5001 consumerMessage The timestamp of the order announcement is invalid
order/server/api/order HTTP/1.1 422 Unprocessable Entity 5017 consumerMessage merchantOrderId is required
order/server/api/order HTTP/1.1 422 Unprocessable Entity 5017 consumerMessage merchantReturnURL is required
order/server/api/order HTTP/1.1 422 Unprocessable Entity 5017 consumerMessage currency required and should be one of: [AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, SEK, USD]
order/server/api/order HTTP/1.1 422 Unprocessable Entity 5017 consumerMessage order amount must be greater than zero

Simulate Requests

Refresh

curl --request GET https://betalen.rabobank.nl/omnikassa-api/gatekeeper/refresh \
	--header "Authorization: Bearer __refresh_token__" \
	--connect-timeout 5 \
	--max-time 5 \
	--user-agent "WordPress/4.9.8; https://example.com/" \
	--verbose

Order

curl --request POST https://betalen.rabobank.nl/omnikassa-api-sandbox/order/server/api/order \
	--header "Authorization: Bearer __refresh_token__" \
	--connect-timeout 5 \
	--max-time 5 \
	--user-agent "WordPress/4.9.8; https://example.com/" \
	--verbose

Notification

curl --request POST "https://example.com/?omnikassa2_webhook" \
	--data-binary "@tests/json/notification.json" \
	--user-agent "Java/1.8.0" \
	--verbose

Event

curl --request GET https://betalen.rabobank.nl/omnikassa-api-sandbox/order/server/api/events/results/merchant.order.status.changed \
	--header "Authorization: Bearer __refresh_token__" \
	--connect-timeout 5 \
	--max-time 5 \
	--user-agent "WordPress/4.9.8; https://example.com/" \
	--verbose
curl --request GET https://betalen.rabobank.nl/omnikassa-api/order/server/api/events/results/merchant.order.status.changed \
	--header "Authorization: Bearer __refresh_token__" \
	--connect-timeout 5 \
	--max-time 5 \
	--user-agent "WordPress/4.9.8; https://example.com/" \
	--verbose

License

FOSSA Status

You can’t perform that action at this time.